Question

Computer Operating Systems

7 779501 611829 2675435 55379 08896 57 3 805735 18-58 25 8356693| 533| 3 8 1 2671 | 3 64 900 70 57| 2212222222 0684 001560 8

a. Which algorithm (FCFS or SJF) has the best (highest) CPU utilization, why do you think that algorithm has a higher CPU uti

Please give answers for questions a-g with full sentences. Thank you in advance.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a.

FCFS à

CPU utilization is given by = (280-(45*cs)/ 280-(45*cs) + 2*cs)

Where cs is the context switching.

SJF à

CPU utilization is given by = (311- (45*cs)/ 311 – (45*cs) + 3*cs)

Where cs is the context switching.

Since both algorithm are executing the same processes cs is equal for them. Hence CPU utilization for FCFS is better.

b.  Contest switches (cs) for FCFS is equal to 8 since there as 9 different processes with each executed only once

c.  Contest switches (cs) for SJF is equal to 8 since there as 9 different processes with each executed only once.

d.  It is a process of storing the state of a process so that it can be restores or resumed again from the same point. Since it affects the CPU utilization using the before mentioned formula, it affects the performance of each algorithm

e. SJF algorithm has lowest Average Wait Time.

f.  FCFS algorithm has lowest Average Response Time

g.  SJF has the lowest Average Turnaround Time.

Add a comment
Know the answer?
Add Answer to:
Computer Operating Systems Please give answers for questions a-g with full sentences. Thank you in advance....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems...

    This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems to achieve multiprogramming. All problems in this assignment assume the following: The simulations you will be creating are for a uniprocessor system (single CPU). Processes in these simulations will require CPU bursts of one or more time units followed by I/O bursts of one or more time units. For simplicity’s sake, when more than one process is executing its I/O burst at the same...

  • Please answer the following question in C++ language Consider the following set of processes, with the...

    Please answer the following question in C++ language Consider the following set of processes, with the length of the CPU burst time given in milliseconds: Process            Burst Time      Priority P1. 7 5 P2 2 4 P3 11 3 P4 9 1 P5 5 3 The processes are assumed to have arrived in the order P1,P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, nonpreemptive...

  • Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and...

    Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and a disk used for virtual memory. If a referenced word is in the cache, 20ns are required to access it. If it is in main memory but not in the cache, 60ns are required to load it into the cache (this includes the time to originally check the cache), and then, the reference is started again. If the word is not in main memory,...

  • I'm try to complete an Operating Systems assignment where we have 8 processes, and each process...

    I'm try to complete an Operating Systems assignment where we have 8 processes, and each process has between 14-18 bursts. We have to do a FCFS simulation, SJF simulation, and MLFQ simulation. I am well aware of how to calculate everything for the processes when we just have one set of bursts to deal with, however these processes have way more than that. I am a very visual learner, I would love if someone could explain to me how to...

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

  • Please answer all questions, thank you in advance! Section 6.1: Test for a Single Proportion Example...

    Please answer all questions, thank you in advance! Section 6.1: Test for a Single Proportion Example 7: NFL Overtime At the start of overtime in a National Football League game, a coin is flipped to determine which team will kick off and which will receive. The question of interest is how much advantage (if any) is given to the team that wins the coin flip at the start of the sudden death overtime period. In the overtime games played between...

  • Please answer all questions. Thank You? 31) Sympathetic nerve stimulation and epinephrine heart activity. A) increase...

    Please answer all questions. Thank You? 31) Sympathetic nerve stimulation and epinephrine heart activity. A) increase B) decrease C) have no effect on D) The heart responds to hormones, but not to nerve stimulation. E) The heart responds to nerve stimulation, but not to hormones. 52) Rheumatic Tever is a bacterial disease that can result in degeneration of heart valves. That would cause A) slower heartbeat. B) uncoordinated attraction of ventricles. C) faster heart beat. D) backfire of blood from...

  • Please use own words. Thank you. CASE QUESTIONS AND DISCUSSION > Analyze and discuss the questions...

    Please use own words. Thank you. CASE QUESTIONS AND DISCUSSION > Analyze and discuss the questions listed below in specific detail. A minimum of 4 pages is required; ensure that you answer all questions completely Case Questions Who are the main players (name and position)? What business (es) and industry or industries is the company in? What are the issues and problems facing the company? (Sort them by importance and urgency.) What are the characteristics of the environment in which...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT