Embed presentation
Downloaded 21 times






The document compares pthread and fork for creating threads/processes. Pthread uses POSIX threads to create a new thread within the same process address space, where the new thread can access the same memory as the parent thread. Fork creates a new child process that is an exact copy of the parent process, but with its own unique process ID. The main differences are that pthreads share the same memory while processes have separate memory spaces, and pthreads are more lightweight to create than processes.




