c) In Fig. 3 straight arrows represent scheduler activations, s-shaped symbols represent user-level threads, and the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
c) In Fig. 3 straight arrows represent scheduler activations, s-shaped symbols represent user-level threads, and the cluster of user-level threads to the right of the pane represents the ready list. At time T1, the kernel allocates the application three processors. On each processor, the kernel upcalls to user-level code that removes a thread from the ready list and starts running it. At time T2 (where, T2 > T1), if the user-level thread (thread 2) blocks in the kernel (assuming that it is doing an I/O), how does the kernel handle this situation, i.e. what steps does the kernel take? At time T3 (where, T3 > T2), if thread 2 unblocks (completes the I/O) and thread 1 completes its' task, how will kernel handle this situation. Show two diagrams (like Fig.3) showing both the scenarios. [3] User level runtime system Add Processor Processors (3) (2) < User Program (1) - Add Add Processor Processor (1) Kernel (2) (3) (4) Fig.3 At Time T1, three processors are allocated to three threads (no more processor is available) (P.T.O) c) In Fig. 3 straight arrows represent scheduler activations, s-shaped symbols represent user-level threads, and the cluster of user-level threads to the right of the pane represents the ready list. At time T1, the kernel allocates the application three processors. On each processor, the kernel upcalls to user-level code that removes a thread from the ready list and starts running it. At time T2 (where, T2 > T1), if the user-level thread (thread 2) blocks in the kernel (assuming that it is doing an I/O), how does the kernel handle this situation, i.e. what steps does the kernel take? At time T3 (where, T3 > T2), if thread 2 unblocks (completes the I/O) and thread 1 completes its' task, how will kernel handle this situation. Show two diagrams (like Fig.3) showing both the scenarios. [3] User level runtime system Add Processor Processors (3) (2) < User Program (1) - Add Add Processor Processor (1) Kernel (2) (3) (4) Fig.3 At Time T1, three processors are allocated to three threads (no more processor is available) (P.T.O)
Expert Answer:
Answer rating: 100% (QA)
Lets consider the given questions in two cases ie Case 1 At time T2 when the userlevel thread thread 2 blocks ans Case 2 At time T3 when the thread 2 unblocks Below explaininganswering bothe the case ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Please give a real-life example of the following authorized methods to serve the civil claims. 1. personal service (default method; must give pleadings directly to the individual) 2. substitutional...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Write out the equation for the following chemical reaction and balance it. Solid potassium chlorate, KCIO3, decomposes to form solid potassium chloride and diatomic oxygen gas. What is the...
-
The sphere in Prob. 5.48 is dropped in gasoline at 20C. Ignoring its acceleration phase, what will its terminal (constant) fall velocity be, from Fig. 5.3a?
-
Universal Foods has a debt-to-value ratio of 40%, its debt is currently selling on a yield of 6%, and its cost of equity is 12%. The corporate tax rate is 40%. The company is now evaluating a new...
-
In a wheel and axle, the diameter of wheel is 500 mm and that of the axle 150 mm. Find the velocity ratio. If the load to be lifted is 1500 N, find the effort required for machine efficiency of 60%.
-
Scofield Financial Co. is a regional insurance company that began operations on January 1, 2016. The following transactions relate to trading securities acquired by Scofield Financial Co., which has...
-
Select a company you are familiar with and detail one short-term and one longer-term strategy, then discuss how the role of human resource development can provide valuable advice and counsel in the...
-
Town and Country Hardware (T&CH) is a closely owned business founded six years ago by Caleb and Jasmine Wright. T&CH has retail hardware stores located at three lake communities along the Virginia...
-
A bridge would cost $50 million to build (this cost must be incurred now). After its built, starting next year, the bridge will last for 50 years. Each year when the bridge is in use, we expect it to...
-
Discuss ways in which a company's shareholders can encourage its managers to act in a way which is consistent with the objective of maximizing shareholders wealth. (b) Explain the important for...
-
A 55 turn circular coil has a radius of 19.7 cm. A current of 2.35 A flows through the coil. Determine the magnetic field magnitude B at the center of the coil. B =
-
What is the Yield to Maturity (YTM) on a 3.65% T-Bond with a maturity date in October 2021 if the current market price is 111.82? How should you interpret this YTM? A) YTM = 0.46%, the maximum...
-
Calculate the Net Revenue year over year rgrowth from 2 0 1 7 to 2 0 2 4 . The net revenue is in USD billions and most of the net revenue is from Q 4 of each year. Please include the percentage...
-
4. What should regulators do about counterparty risk? How can the industry mitigate and manage such risks? (a) How can you use regulation to limit counterparty exposure? (b) Is it possible to avoid...
-
A patient presents to the emergency department with complaint of painful eye. The patient states that her right eye is constantly tearing and is sensitive to light. The physician performs an exam and...
-
If the annual fixed costs are 54,000 dinars, the occupation expense represents 20%, the contribution margin is 25%, and the unit selling price is 40 dinars. Required: Calculate the closing point of...
-
The Berkeley UNIX connect system call has a time-out interval of about 1 minute, but the accept call has no time-out interval. Explain why these functions might have been designed in this manner.
-
Consider the program as shown below. The C stdio library provides a similar set of file operations using the FILE data structure for a file description. Rewrite the simple file copy example in the...
-
Suppose a system has a disk with 2KB disk blocks and the average access time on a block is 20 milliseconds. A process holding 40KB of memory changes from the running state to the blocked state due to...
-
Brown India Limited manufactures office tables. Normal capacity of the factory is 60,000 tables per annum. Following are the cost and inventory details for the year 200506. Required: Carry out the...
-
Usha Corporation Ltd. sought the advice of an investment advisor for deployment of surplus funds of around Rs. 45 lakh in the stock market. The advisor advised to invest in Bhonsle India Ltd. and...
-
Ram Lakhan Company Ltd. produces one unit of product B by using one unit of raw material A. During 200506 A costed the company 4,200. Conversion cost was 850. As on 31st March 2006, being the...
Study smarter with the SolutionInn App