Date: Tue, 12 Dec 2000 15:51:10 +0530 (IST) From: Satyajeet Seth <sseth@sasken.com> To: <freebsd-hackers@FreeBSD.ORG> Subject: Can kernel threads be implemented using rfork? Message-ID: <Pine.GSO.4.30.0012121534080.26823-100000@suns3.sasi.com>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0012121534080.26823-100000>