Connecting Tech Pros Worldwide Forums | Help | Site Map

fork()

Newbie
 
Join Date: Jan 2007
Posts: 1
#1: Jan 4 '07
how can i create a child process' child...

i want to compute the fibonacci numbers..each child will compute a fibo number sequentially and wait for its child...but how?

Member
 
Join Date: Dec 2006
Posts: 38
#2: Jan 5 '07

re: fork()


You might want to use threads, like the pthreads library. Threads share memory, whereas parent/child processes do not. A process created using fork() would have to use pipe() to communicate with its parent. Google pthread for more info.
Reply


Similar C / C++ bytes