answersLogoWhite

0

in fcfs scheduling there is a shortcoming

that is if any rocess of maximum brust time is first ome. and after that many short burst time process come. then smaller pocesses have to wait for a long time untill the max brust time process complete their execution.

in case of shortest job first it applied the method to give shortest t\burst time job to processer first.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Performing Arts

Explain with an example first come first serve scheduling algorithm?

By far the simplest CPU-scheduling algorithm is the first-come, first-served (FCFS) scheduling algorithm. With this scheme, the process that requests the CPU first is allocated the CPU first. The implementation of the FCFS policy is easily managed with a FIFO queue. When a process enters the ready queue, its PCB is linked onto the tail of the queue. When the CPU is free, it is allocated to the process at the head of the queue. The running process is then removed from the queue. The code for FCFS scheduling is simple to write and understand. The average waiting time under the FCFS policy, however, is often quite long. Consider the following set of processes that arrive at time 0, with the length of the CPU-burst time given in milliseconds:


Disadvantage of time sharing?

There are advantages and disadvantages when purchasing a time share for your vacation destination. The main disadvantages are depreciation, and the inability to use your timeshare due to scheduling conflicts.


What are the relationships between priority and FCFS of CPU scheduling algorithms?

this is my doubt about the non-preemptive priority scheduling. i m doing bachelor of engineering in IT and this question in end semester exam. the question is as follows:Assume you have the following jobs to be executed with one processor, with the jobs arriving in the order listed here:Process Burst Time PriorityP1 80 5P2 20 1P3 10 3P4 20 2P5 50 4Suppose the system uses priority scheduling. Draw Gantt chart and calculate average waiting time for the processes.My doubt is:suppose if we were to use non-preemptive priority scheduling, the question says the jobs arriving in the order listed, so as per the order P1 will arrive first so it will get the CPU first and in non-preemptive once a job gets CPU it will not leave CPU till the process finishes, then as per the order P2 will come and same thing repeats.... so it acts like FCFS scheduling and priority is of no use here. But my lecturer says we have to follow the priority and P2 will come first, but the line the jobs arriving in the order listed is still not letting me agree with my lecturer. Can anyone help out?


What is disk scheduling in operating system?

why we use disk scheduling in c ?


What is priority scheduling algorithm?

The priority scheduling algorithm is a kind of CPU scheduling algorithm where the processes that wait for the CPU are scheduled according to their priority..

Related Questions

Briefly define FCFS scheduling?

FCFS is "First come, first served" Scheduling: Processes are given time on the CPU in the order that they arrive. eg: Process | Arrival Time (ns) | Burst Time (ns) P1 0 20 P2 0 10 P3 0 5 Scheduling Diagram for FCFS: | P1 | P2 | P3 | 0ns 20ns 30ns 35ns


What kind of data structure is required to implement the round robin scheduling policy?

The circular queue data structure is required to implement the round robin scheduling policy. Round robin is similar to FCFS scheduling.


Explain with an example first come first serve scheduling algorithm?

By far the simplest CPU-scheduling algorithm is the first-come, first-served (FCFS) scheduling algorithm. With this scheme, the process that requests the CPU first is allocated the CPU first. The implementation of the FCFS policy is easily managed with a FIFO queue. When a process enters the ready queue, its PCB is linked onto the tail of the queue. When the CPU is free, it is allocated to the process at the head of the queue. The running process is then removed from the queue. The code for FCFS scheduling is simple to write and understand. The average waiting time under the FCFS policy, however, is often quite long. Consider the following set of processes that arrive at time 0, with the length of the CPU-burst time given in milliseconds:


Priority scheduling positive and negative points?

disadvantages of priority scheduling


Disadvantage of time sharing?

There are advantages and disadvantages when purchasing a time share for your vacation destination. The main disadvantages are depreciation, and the inability to use your timeshare due to scheduling conflicts.


What is the disadvantage of cpm?

There are several disadvantages of CPM or Critical Path Method. A few of the disadvantages are CPM is more complicated and complex, doesn't handle scheduling, and you can't estimate completion times.


What are the advantages and disadvantages to online appointment scheduling?

adv. Reduced No-shows, Client convenience, Professional system without the cost


Advantages and disadvantages of first come first serve scheduling?

First-come, first-served (FCFS) - sometimes first-in, first-served and first-come, first choice - is a service policy whereby the requests of customers or clients are attended to in the order that they arrived, without other biases or preferences. The policy can be employed when processing sales orders, in determining restaurant seating, on a taxi stand, etc. In Western society, it is the standard policy for the processing of most queues in which people wait for a service or two.


What are the relationships between priority and FCFS of CPU scheduling algorithms?

this is my doubt about the non-preemptive priority scheduling. i m doing bachelor of engineering in IT and this question in end semester exam. the question is as follows:Assume you have the following jobs to be executed with one processor, with the jobs arriving in the order listed here:Process Burst Time PriorityP1 80 5P2 20 1P3 10 3P4 20 2P5 50 4Suppose the system uses priority scheduling. Draw Gantt chart and calculate average waiting time for the processes.My doubt is:suppose if we were to use non-preemptive priority scheduling, the question says the jobs arriving in the order listed, so as per the order P1 will arrive first so it will get the CPU first and in non-preemptive once a job gets CPU it will not leave CPU till the process finishes, then as per the order P2 will come and same thing repeats.... so it acts like FCFS scheduling and priority is of no use here. But my lecturer says we have to follow the priority and P2 will come first, but the line the jobs arriving in the order listed is still not letting me agree with my lecturer. Can anyone help out?


What is the difference between conventional C and embedd C?

Advantages: - Priority based premptive scheduling -multitasking -multithreading -better response time -valuable services like senaphore,mailbox,queues etc. Disadvantages: -expensive Advantages: - Priority based premptive scheduling -multitasking -multithreading -better response time -valuable services like senaphore,mailbox,queues etc. Disadvantages: -expensive


What is local scheduling and global scheduling?

i do no...............


What type of scheduling is there in RTOS?

A scheduler is the heart of every RTOS. It provides the algorithms to select the task for execution. Three common scheduling algorithms are > Cooperative scheduling > Round-robin scheduling > Preemptive scheduling RTOS uses preemptive (priority based) scheduling. In some cases, real-time requirements can be met by using static scheduling.