CS 241 April 23 2012
Exit this survey
In-class question
1
. Why are multiple threads useful in your web server – as opposed to serving all clients with a single thread in a single process? (Check all that apply.)
Why are multiple threads useful in your web server – as opposed to serving all clients with a single thread in a single process? (Check all that apply.)
Multiple threads can spread work across multiple cores / CPUs to decrease processing time.
Multiple threads have greater memory space to read files and write them to the network.
A single thread would have to switch back and forth between each connection, which is slow and annoying to program.
One thread can be reading/writing from the network while another is waiting to read a file off disk.
Reason for your answer
Powered by
SurveyMonkey
Check out our
sample surveys
and create your own now!
Javascript is required for this site to function, please enable.