Question: what is the difference between thread and fork?
Answer: A thread is an entity within a process that consists of the schedulable part of the process. A fork() duplicates all the threads of a process.