P2L5: Thread Performance Considerations Flashcards

1
Q

Some possible Usefulness of threads (Depends)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Event-Driven Model
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Event-Driven Model: Why
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Flash event driven web server

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Benefits of event driven model

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly