navenmou
Full Member level 4
- Joined
- Sep 25, 2010
- Messages
- 228
- Helped
- 49
- Reputation
- 98
- Reaction score
- 46
- Trophy points
- 1,318
- Location
- Bangalore, India
- Activity points
- 2,588
Does fork()duplicate only the calling thread or all threads?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
under Unix fork() creates a clone (copy) of the process and executes it concurrently with the parent. The only difference between the two processes is that fork returns the child process ID to the parent and zero to the childDoes fork()duplicate only the calling thread or all threads?
but the process has contain multiple threads so while we are using fork() system call for creating the process indirectly it also creat threads..fork is for processes not threads.
--
Amr