





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






There are five questions on this exam. Please answer any four questions.
In an effort to improve performance, the CEO has asked the programming team to try out a number of different scheduling algorithms. Rather than replace the current scheduler, however, they've heard a rumor that it is possible to reuse the current one and are hoping you can help. Your task is to replace the current job priorities with new positive integer priorities so that the current preemptive, priority scheduler will schedule them in a manner identical to a scheduling algorithm running the prescribed algorithm. Assume that you assign the priorities before the system starts running. For each specified algorithm, list the priorities you would use, as well as the new starting and ending time for each job. b. Round-Robin. c. First in, First out (FIFO). d. Shortest job first (SJF) ( not SRTF). e. If the company is concerned with minimizing the average completion time Tfinish โ Tarrival and willing to ignore the initial priority assignments, which scheduling algorithm should they use?
a) Is this implementation of cmpxchng guaranteed to complete atomically on a uniprocessor? Why or why not? Be specific. b) Is this implementation of cmpxchng guaranteed to complete atomically on a shared memory multiprocessor? Why or why not? Be specific. c) RAS is an optimistic technique and can be considerably faster than other approaches (including intrinsic hardware support). Explain what makes it so fast and why it is an optimistic technique.