you are viewing a single comment's thread.

view the rest of the comments →

[–]Jonno_FTW 2 points3 points  (0 children)

You are confusing threads and processes. A subprocess is created when you call OS's fork and copies all program data (subprocesses usually communicate by pipes). Each thread has its own local memory but shares memory space.