PPT Slide
Advantages of Threads
- Provide parallel (possibly pseudo-parallel) programming.
- Cheaper to create and destroy.
- Cheaper to context switch between.
- By definition they share memory, meaning shared-memory based IPC is a natural and slow system calls are not needed to communicate.
- Good for parallel algorithms that are tightly coupled and that use the same data structures.
- Common term: multi-threaded server.