Multithreading (cont’d)
Or use OS multithreading
- No problem with blocking operations
- Can run a process’s threads on different processors (SMP)
- Possibly more expensive to switch threads (system calls)
Whether at the user or OS level, multithreading has
- fewer processes
- reduced context switching
Disadvantages
- Little protection between threads
- Server failure affects many transactions