2 ms·
Under Linux, you don't need threads. Threads and processes are basically the same thing. You just provide different flags which tell the kernel how it should vi
by outworlder 8y ago
Under Linux, you don't need threads. Threads and processes are basically the same thing. You just provide different flags which tell the kernel how it should view that process, which will impact things like memory isolation, copy on write, etc.
Under Windows, it is a different story. Threads and processes are wildly different constructs, and threads are more lightweight. Sometimes, still not lightweight enough, so they came up with fibers.
- pjmlp 8y agoLinux is the exception on how most UNIXes implement threads.