in reply to Re: Signaling in threads
in thread Signaling in forked threads
#!/usr/bin/perl print "Hello Monks";
running the above code and grepping the process results in one process
CODE 2
#!/usr/bin/perl use forks; print "Hello Monks";
running the above code and grepping the process results in two process.
You all are right, it is actually different process not threads. Now in the code 2, smaller process id is of main program and other process id is one when i write "use fork". Now i want to register a handle for 'SIGUSR2' for the process created by "use forks;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Signaling in threads
by BrowserUk (Patriarch) on Apr 07, 2010 at 11:37 UTC |