InterviewSolution
Saved Bookmarks
| 1. |
What Is Difference Between Forking A Process And Spawning A Thread? |
|
Answer» When you fork a process, the new process will run same CODE as parent process but in different memory space, but when you spawn a new thread in existing process, it just CREATES ANOTHER independent path of execution but share same memory space. When you fork a process, the new process will run same code as parent process but in different memory space, but when you spawn a new thread in existing process, it just creates another independent path of execution but share same memory space. |
|