On 26 Jul 2007 11:29:14 GMT
wrote:
a> rajendra <> wrote in comp.lang.perl.misc:
>> The perl documentation says the fork command generates two copies of the
>> program ,one parent and one child.
>> If this is correct,can this fork command be used for multitasking?.
a> Yes, that is its very purpose.
I usually point people to the Stevens books (Advanced Programming in the
Unix Environment 2nd ed., especially) or some equivalent tutorial,
whenever they ask about fork(). I think using fork() requires
understanding the way it works on the OS level--at least IPC and IO
stream behavior, if nothing else.
Ted