Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Multiples answers are allowed Assume you want to implement a web - server for YouTube by using multithreading, where each thread serves one incoming request

Multiples answers are allowed
Assume you want to implement a web-server for YouTube by using multithreading, where each thread serves one incoming request by loading a video file from the disk. Assume the OS
only provides the normal blocking read system call for disk reads, do you think ULTs or KLTs should be used?
Select the statements that are properly matched to achieve this goal.
In this case, it is recommended to use ULTs for its efficiency as one thread can block all other threads within the same process.
It is better to use KLT, because one thread won't block others.
It is recommended to use KLT because each thread will make blocking I/O calls.
Using ULT, one thread will block all other threads which is suitable for 1O operations.
In this case, using KLTs which is more expensive, is not a matter as everytime such communication needs anyway to go through the kernel.
In this particular case, it is beneficial to implement ULTs since these threads need to communicate frequently with each other.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Let X 1 ,X 2 , . . . , X n be iid N(0, ), 0 Answered: 1 week ago

Answered: 1 week ago

Question

=+Identify trends in the social media industry

Answered: 1 week ago