Question

Answer each part of the question completely. Consider and discuss the relationship between process preemption and...

Answer each part of the question completely. Consider and discuss the relationship between process preemption and round robin scheduling. Why would we choose to use RR over Shortest Job First? What is the time quantum and why is it important?

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

Answer)

Preemption happens when the new process arrives and is in the ready queue which is predicted to have a shorter burst time than the time remaining in the particular process which is currently in the CPU. This is sometimes called the shortest remaining time first scheduling.

Round robin also follows the preemptive scheduling algorithm where the processes are given turns during execution one after the other in a sequence which is repetitive where everyone is preempted to have a time slice.

One of the major advantages of round-robin algorithm is that it improves the average response time and also limits every task to have some amount of time where the operating system would ensure the cycle for the ready task and provides the chance to each process whereas in SJF the time taken by the process is not known to the CPU before and hence a process can have more waiting time and can lead to starvation.

The time quantum is a theory where the time is considered as the quantum variable with the discrete spectrum with the consistency of special relativity.

It is most important in non-linear programming model for helping to determine the optimal value of the time for minimising the average wait time.

If you found the answer useful, hit like
Hope this answer helps.
Thanks

Add a comment
Know the answer?
Add Answer to:
Answer each part of the question completely. Consider and discuss the relationship between process preemption 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
  • Part I: Theory In this part you need to discuss different process scheduling algorithm. The main...

    Part I: Theory In this part you need to discuss different process scheduling algorithm. The main points to include in your project are: 1. Goals of processor scheduling. 2. Preemptive vs. nonpreemptive scheduling. 3. Priorities in scheduling. 4. Common scheduling algorithms. First-In-First Out (FIFO) Round Robin (RR) Shortest-Process-First (SPF)

  •          Process                    Arrival Time            &nbsp

             Process                    Arrival Time                             Burst Time                         P1                                0                                              2                         P2                                1                                              1                         P3                                2                                              4                         P4                                3                                              2                         P5                                4                                              1 Consider a set of processes given above with the arrival time and the length of CPU burst time given in cycles. Show a Gantt chart and calculations of average turnaround time and average waiting time of these processes under the shortest job first (SJF) with preemption CPU scheduling algorithm and the round-robin...

  • 4. Consider a ready queue with four processes :- Process Arrival Time Burst Time (ms) P1...

    4. Consider a ready queue with four processes :- Process Arrival Time Burst Time (ms) P1 Priority P2 P3 P4 P5 For each of the following CPU scheduling algorithms, determine the turnaround and average waiting time for each of the process :- a. Shortest remaining Time First b. Shortest Job First C. Priority Scheduling (Both pre-emptive and non-preemptive) d. Round Robin (quantum is 1 ms)

  • operating systems question: Below is a set of processes with CPU burst times listed in milliseconds....

    operating systems question: Below is a set of processes with CPU burst times listed in milliseconds. Assume all processes arrive at time 0 in the order shown. Process CPU burst A 10 ms B 3 ms C 6 ms D 8 ms E 5 ms a) Create a Gantt chart for the Shortest Job First scheduling algorithm. Assume no preemption. Label the ending times of each process. Use this format for your Gantt chart: | W | X | Y...

  • Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst....

    Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst.   I/O Burst Total CPU time A. 0 4 4 9 B 3 2 3 7 C 6 5 1 11 D 12 1 1 5 As we did in class, perform a scheduling simulation using these four processes according to the following algorithms: 1) First Come First Serve 2) Round Robin with time slice = 1 3) Round Robin with time slice = 3...

  • The question is this. there is nothing given [8 What is the waiting time of each...

    The question is this. there is nothing given [8 What is the waiting time of each process for each of the scheduling algorithms? Marks] Job Arrival Time Size (msec) P1 0 9 Priority 3 (Silver) 1 (Diamond) 3 (Silver) P2 3 P3 3 3 P4 6 5 4 (Bronze) 2 (Gold) P5 7 4 (a) First-Come-First-Served (FCFS) scheduling (b) Preemptive PRIORITY scheduling (c) Non-preemptive PRIORITY scheduling (d) Round Robin (RR) (quantum = 3) scheduling

  • Here is a table of processes and their associated arrival and running times: Show the scheduling...

    Here is a table of processes and their associated arrival and running times: Show the scheduling order for these processes under First-Come-First-Served (FCFS), Shortest-Job First (SJF), and Round-Robin (RR) with a quantum = 1 time unit. Assume that the context switch overhead is 0 and new processes are added to the head of the queue (i.e. next in line for scheduling) except for FCFS. In the table, use notation such as P1, P2, etc.

  • Given the following set of processes with corresponding execution times (in ms), arrival times and priority...

    Given the following set of processes with corresponding execution times (in ms), arrival times and priority (1 – highest).  For each scheduling algorithm: Construct a table showing which process is active and for how long until all processes are completely serviced (as done in class). Calculate the average waiting time and turnaround time. Process ID Burst (ms) Arrival time P1 9 0 P2 12 0 P3 3 0 P4 30 0 P5 20 0 P6 10 0 First Come First Serve...

  • Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and...

    Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and E, arrive at a computer system at time 0, 1, 2, 3, 4, respectively. And they have service time of 7.1. 3,5, and 4, respectively. The new jobs arrive a little ahead of the expiration of time slices. For each of the following scheduling algorithms, determine the turnaround time for each process for all jobs. Ignore process switching overhead. • Round robin with a...

  • Consider the set process, Find average time of following Scheduling Algorithm

    Consider the set process. There arrival time start from 0, Consider your seat number as burst time also consider all time value in seconds. Find average time of following Scheduling Algorithm. Note (quantum=2) (a) Longest Remaining time first (LRTF) (Preemptive) (b) Round Robin Scheduling (LRTF) (Non- Preemptive)

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