Answered You can hire a professional tutor to get the answer.
Suppose that all programs in a particular CPU are given 40 clock cycles to process before getting swapped out for another program.
1. Suppose that all programs in a particular CPU are given 40 clock cycles to process before getting swapped out for another program. Suppose also, that it takes 2 CPU clock cycles to swap out the process control block (PCB) for a particular program and restore the next program's PCB. What percent of the CPU clock cycles are used for processing 100 programs? (Hint: calculate: Program clock cycles / (Swap clock cycles + Program clock cycles)). Show your work and how you arrived at the solution.
2. Answer both part (a ) and (b).
a. What is the responsibility of the dispatcher during a context-switch?
b. There are two levels of scheduling. One level of scheduling determines which jobs will be admitted to the system and in what order. What does the other level of scheduling do?
What system architecture is typically used to support high availability and scalability and how (Hint: Group Project. Please explain how the architecture supports high availability and scalability)?
4 Describe CPU scheduling; how it works and why we need it.
5 Perform the Round-Robin dispatch algorithm, with time quantum equal to 300 milliseconds, on the job queue and calculate:
Job 1 arrives at time 0 and needs 500 milliseconds to complete.
Job 2 arrives at time 300 milliseconds and needs 400 milliseconds to complete.
Job 3 arrives at time 400 milliseconds and needs 200 milliseconds to complete.
Job 4 arrives at time 400 milliseconds and needs 500 milliseconds to complete.
a. The average wait times. (Hint: average the number milliseconds each job was in a wait state)
b. Average turn-around-time. (Hint: for each job, count the number of milliseconds from arrival to completion and average)