Hi
Is it possible to implement threads in FreeBSD 4.0 kernel using the rfork
system call? If yes, could you give an example?
I tried to get the following piece of code to work without success.
#include <unistd.h>
main()
{
if (rfork( RFPROC | RFNOWAIT | RFMEM | RFSIGSHARE ) > 0)
{
while(1)
printf ("Parent process's pid = %d\n", getpid());
}
while(1)
printf ("Child process's pid = %d\n", getpid());
}
Regards
Satya
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message