Question

What are the pros and cons of each of the following scheduling algorithms: FCFS, RR, and...

What are the pros and cons of each of the following scheduling algorithms: FCFS, RR, and SJF?

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

Answer:

FCFS:Which ever the process entered into the queue that will be executed.

pros:

Easy to implement.It is non-preemptive.First come first served.

cons:If the first entered process takes long time for execution.Then the other processes need to suffer from starvation.

Throughput is not efficient.There is less interactive with processes.

SJF:Shorted job first.Which ever processes has the least burst time that will be executed first.

Pros:We can execute more number of jobs in a very short period of time.We can achieve more throughput.

Cons:Time taken by a process should be know to the C.P.U Practically that won't be possible.We can't tell the burst time of a program Before it gets executed.

The long process has to be suffer from starvation though they arrive at the queue early.

RR:

pros:In round robin approach.Each process gets executed by the C.PU for a fixed time quantum.So every process get a chance to execute irrespective of their burst time and arrival times.No process suffer from starvation.

Cons:Throughput mainly depends upon on the length of the time quantum.If the time quantum is very less then the C.P.U has to perform more number of context switches.This reduces the c.p.u throughput.C.P.U time is wasted for context switches.

This effects the c.p.u efficiency.

Thank you...

Add a comment
Know the answer?
Add Answer to:
What are the pros and cons of each of the following scheduling algorithms: FCFS, RR, and...
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
  • Of the scheduling algorithms, FCFS, SJF (non preemptive), SRTF (preemptive version of SJF), RR, and the class of Priorty algorithms, which ones cannot cause starvation?

    Of the scheduling algorithms, FCFS, SJF (non preemptive), SRTF (preemptive version of SJF), RR, and the class of Priorty algorithms, which ones cannot cause starvation? Briefly explain your answers.

  • 1. Use the following data to draw a Gantt chart for FCFS scheduling, SJF scheduling and...

    1. Use the following data to draw a Gantt chart for FCFS scheduling, SJF scheduling and RR scheduling with time quantum 9. Show the wait time for each job and the average wait time. Process                Burst time P1                         10 P2                         5 P3                         20 P4                         15 P5                         10

  • implement a program, which allow you to evaluate and compare different scheduling algorithms. List of implemented...

    implement a program, which allow you to evaluate and compare different scheduling algorithms. List of implemented algorithms for evaluation should include FCFS algorithm and at least one from the following: -SJF – preemptive and non-preemptive -Priority scheduling – preemptive and non-preemptive -RR -Multilevel feedback queue Your program should be able to work in two different modes: “Single algorithm performance evaluation” and “Algorithm comparing”

  • Cpu scheduling

    Consider the following set of processes, with the length of the CPU burst times given in milliseconds:a. Draw four Gantt charts illustrating the execution of the processes using FCFS, Preemptive SJF, a non-preemptive priority, and a RR (quantum=2) scheduling. (30 pts)Note: for the RR consider that the arriving time is 0 for all processesb. What is the average waiting time of each process for of the above scheduling algorithms? (10 pts)P1 8 2 0 P2 5 36P3 1 1 8...

  • Give the following scheduling algorithms : STRF, SJF, RR(q=6) Process Arrival Time Burst Time Priority P0...

    Give the following scheduling algorithms : STRF, SJF, RR(q=6) Process Arrival Time Burst Time Priority P0 2 15 3 P1 4 20 2 P2 0 28 1 P3 8 14 3

  • QUESTION 1 Consider the following set of processes, with the length of the CPU burst time...

    QUESTION 1 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 priority (a smaller priority number implies a higher priority), and RR (quantum = 2). b. What...

  • What are some examples of compression algorithms? What are their pros and cons

    What are some examples of compression algorithms? What are their pros and cons

  • Write a java program that implements the following disk-scheduling algorithms: a. FCFS b. SSTF c. SCAN...

    Write a java program that implements the following disk-scheduling algorithms: a. FCFS b. SSTF c. SCAN Your program will service a disk with 5000 cylinders numbered 0 to 4999. The program will generate a random series of 1,000 cylinder requests and service them according to each of nth algorithms listed above. The program will be passed the initial position of the disk head and report the total amount of head movement required by the algorithm.

  • 1 - [30 pts] Scheduling Algorithms Comparison Assume that we have 5 independent and aperiodic tasks...

    1 - [30 pts] Scheduling Algorithms Comparison Assume that we have 5 independent and aperiodic tasks (T1, ... , Ts) and they arrive to the system at times indicated below. Each task will run for the amount of execution time listed and is assigned a priority ranging from 0 (highest) to 10 (lowest), i.e. lower value means higher priority. There are no other tasks scheduled to arrive to the system until T1, ... , Ts complete. Task Arrival Time Execution...

  • Use any language Task two Write a program that implements the following disk-scheduling algorithms: a. FCFS...

    Use any language Task two Write a program that implements the following disk-scheduling algorithms: a. FCFS b. SSTF c. SCAN d. C-SCAN e.LOOK f. C-LOOK Your program will service a disk with 500 cylinders numbered 0 to 499. The program will generate a random series of 20 cylinder requests and service them according to each of the algorithms listed above. The proram will be passed the initial position of the disk head (as a parameter on the command line) and...

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