P2L5: Thread Performance Considerations Flashcards
1
Q
Some possible Usefulness of threads (Depends)
A

2
Q
Contrast the pros-and-cons of a multithreaded (MT) and multiprocess (MP) implementation of a webserver, as described in the Flash paper.
A
Multi Threaded Web Server
pros
- Shared address space
- shared state
- cheap context swith
cons
- Not simple implementation
- requires synchronization
- underlying support for threads
Multi Process Web Server
pros
- simple programming
cons
- High memory usage
- costly context swith
- hard/costly to maintain shared state
3
Q
- Event-Driven Model
A

4
Q
- Event-Driven Model: Why
A

5
Q
Flash event driven web server
A

6
Q
Benefits of event driven model
A
