what is the main function of fork() in cgi programming?



what is the main function of fork() in cgi programming?..

Answer / Sandeep Anannd

The main function of fork() in CGI programming is to create a new process (child process) that is an exact copy of the parent process (the original script). This is used for parallel processing, where the child process performs some tasks while the parent process continues with others.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Write an expression or perl script to identify the entered ip address is valid or not?

5 Answers   HCL,


What does the’$_’ symbol mean?

1 Answers  


package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,

1 Answers  


Mention how many ways you can express string in Perl?

1 Answers  


Which has highest precedence in between list and terms? Explain?

1 Answers  


how to find a substring in a string without using substr built in functions, and print the substring found

3 Answers   Nokia,


Explain lists in perl?

1 Answers  


How to deleting an existing file in perl programming?

1 Answers  


Which functions in perl allows you to include a module file.

1 Answers  


I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur

1 Answers  


Explain the various characteristics of perl.

1 Answers  


What is caller function in perl?

1 Answers  


Categories