LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FORK (https://www.linuxquestions.org/questions/linux-newbie-8/fork-922163/)

vishnu anand 01-05-2012 03:26 AM

FORK
 
i very well know that we can fo fork for process..can we use fork for a thread?? if we can use fork for a thread thn how will the child process be?? will it be the duplicate of the process or duplicate of the thread??

thanks in advance!!!

theNbomr 01-05-2012 03:16 PM

Use pthread_create() to create (POSIX) threads. Use fork() to create processes.

--- rod.


All times are GMT -5. The time now is 09:29 AM.