Question

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.



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

Round robin does not cause starvation. A process in the ready list will have to wait for the only N turns of length at most q each before being allocated the CPU where N is the number of processes in the ready queue ahead of the process and q is the quantum of CPU allocated to a process when it is scheduled.


SJF and SRTF can cause starvation of some process, P, if just before the running process finishes its CPU burst, a new process always arrives with a CPU burst smaller P's burst.


Priority scheduling algorithms can also cause starvation of some process, P, if just before the running process finishes its CPU burst, a new process always arrives with a priority smaller than P's priority. However, if priorities are adjusted during execution so that any process which has not received any recent CPU usage eventually has the highest priority (this is called aging), then starvation obviously cannot occur.


FCFS does not quite guarantee that starvation cannot occur. A process that has an infinite CPU burst (e.g., that executes code with an infinite loop) will starve all remaining processes. On the other hand, if no process has an infinite CPU burst, then starvation will not occur. For, in this case, a process in the ready list will then have to wait for the only N turns, each of finite length, before being allocated the CPU where N is the number of arrivals in the ready list before this process.


Add a comment
Know the answer?
Add Answer to:
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?
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
  • 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”

  • 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...

  • Implement a program for SJF(non-preemptive) scheduling. Given n processes with their burst times and Arrival Time,...

    Implement a program for SJF(non-preemptive) scheduling. Given n processes with their burst times and Arrival Time, the task is to find average waiting time and average turn around time and completion time using SJF scheduling algorithm. Language in C • Completion Time: Time at which process completes its execution. • Turn Around Time: Time Difference between completion time and arrival time. Turn Around Time = Completion Time – Arrival Time • Waiting Time: Time Difference between turn around time and...

  • Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight...

    Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight processes below. Use any programming language. The program listing should be submitted with the report. FCFS (First Come First Serve) non-preemptive (partial results provided) SJF non-preemptive MLFQ Multilevel Feedback Queue (absolute priority in higher queues)             Queue 1 uses RR scheduling with Tq = 5             Queue 2 uses RR scheduling with Tq = 10             Queue 3 uses FCFS All processes enter first...

  • scheduling program in C, please help 1 Objectives This programming project is to simulate a few...

    scheduling program in C, please help 1 Objectives This programming project is to simulate a few CPU scheduling policies discussed in the class. You will write a C program to implement a simulator with different scheduling algorithms. The simulator selects a task to run from ready queue based on the scheduling algorithm. Since the project intends to simulate a CPU scheduler, so it does not require any actual process creation or execution. When a task is scheduled, the simulator will...

  • MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1)...

    MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The LM curve represents A) the single level of output where the goods market is in equilibrium. B) the combinations of output and the interest rate where the goods market is in equilibrium. C) the single level of output where financial markets are in equilibrium. D) the combinations of output and the interest rate where the money market is in equilibrium. E) none of...

  • MULTIPLE CHOICE.  Choose the one alternative that best completes the statement or answers the question. 1) The...

    MULTIPLE CHOICE.  Choose the one alternative that best completes the statement or answers the question. 1) The LM curve represents A) the single level of output where the goods market is in equilibrium. B) the combinations of output and the interest rate where the goods market is in equilibrium. C) the single level of output where financial markets are in equilibrium. D) the combinations of output and the interest rate where the money market is in equilibrium. E) none of the...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

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