answersLogoWhite

0

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 Priority

P1 80 5

P2 20 1

P3 10 3

P4 20 2

P5 50 4

Suppose 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?

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Performing Arts

Hard and soft real-time scheduling?

Soft real-time scheduling means that, while processor and other scheduling algorithms may be optimized to give preference to higher-priority processes, no absolute guarantee of performance can be made. The hard real-time computer is designed for specialized purposes, where even the smallest amount of latency can make the difference between life and death.


What is the difference between preemptive and non preemptive scheduling?

1.) in preemptive scheduling we prempt the currently executing process, in non preemptive scheduling we allow the current process to finish its CPU burst time... 2.) in preemptive scheduling the process is forcibly sent to waiting state when a process with higher priority comes to CPU, in non preeemptive scheduling the process at running state can not be forced to leave the CPU until it completes........


What is the diffrernce between scheduling and sequencing of tasks by the operating system?

Scheduling refers to the process of determining the order in which tasks are executed by the operating system based on priority, fairness, or other criteria. Sequencing, on the other hand, refers to the specific order in which tasks are arranged or executed to achieve a desired outcome. In essence, scheduling is about managing the overall allocation of resources and time, while sequencing is about organizing tasks in a specific order for optimal performance.


What are the relationships in dance?

What are relationships in dance? Is that the question? If it is then the relationship may be between the dancers on the stage, the relationship between the audience and the dancer, and the relationship between the dancer and the choreographer. All of which are important for a dancer to perform their best.


When people read visual and audio texts they?

(Apex) Find meaning and decipher relationships between symbols and information.

Related Questions

Hard and soft real-time scheduling?

Soft real-time scheduling means that, while processor and other scheduling algorithms may be optimized to give preference to higher-priority processes, no absolute guarantee of performance can be made. The hard real-time computer is designed for specialized purposes, where even the smallest amount of latency can make the difference between life and death.


What is the different between high and low level scheduling?

It would seem that the difference between high and low level scheduling would be determined by the priority/necessity/importance of the subject in question, as related to the purposes/goals of the organization.


What are the differences between cscan and scan algorithms for disk scheduling?

The main difference between the C-SCAN and SCAN algorithms for disk scheduling is how they handle requests that are located at the end of the disk. C-SCAN moves the disk arm to the other end of the disk after servicing the last request, while SCAN moves the arm back to the beginning of the disk. This difference affects the order in which requests are serviced and can impact the overall efficiency of the disk scheduling algorithm.


What is the Least Slack Time scheduling algorithm used for?

The Least Slack Time scheduling algorithm is used for assigning priority based on the slack time (temporal difference between the deadline, ready time and run time) of a process.


What is the difference between preemptive and non preemptive scheduling?

1.) in preemptive scheduling we prempt the currently executing process, in non preemptive scheduling we allow the current process to finish its CPU burst time... 2.) in preemptive scheduling the process is forcibly sent to waiting state when a process with higher priority comes to CPU, in non preeemptive scheduling the process at running state can not be forced to leave the CPU until it completes........


What is difference between preemtive and nonpreemtive sheduling?

In preemptive scheduling a given task can always be "preempted" by a higher priority task. The operating systems saves the context of the running task and restores the context of the higher priority task (context switch). When all higher priority tasks have been finished, the task resumes its execution. With non-preemptive scheduling a task always executes until it ends or when it reaches a preemption point. Hope this helps


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 relation between priority and shortest job first?

In that work system, the shortest job gets higher priority because more gets accomplished in any amount of time. If you have two hours to do 4 tasks and one task will take five minutes, one will take 30 minutes, one will take an hour and one will take an hour and a half, by using the shortest job first method, you will accomplish three tasks in those two hours and part of the fourth task. If you do the longest job first, you will accomplish the task that takes an hour and a half, then only part of the one hour task, but nothing on the 5 minute or 30 minute tasks. That means that by doing the shortest jobs first, you will accomplish three times as many tasks as you will by doing the longest jobs first.


What is the difference between backing store swapping and roll out roll in swapping?

nBacking Store - fast disk large enough to accommodate copies of all memory images for all users; must provide direct access to these memory images. nRoll out, roll in - swapping variant used for priority based scheduling algorithms; lower priority process is swapped out, so higher priority process can be loaded and executed. nMajor part of swap time is transfer time; total transfer time is directly proportional to the amount of memory swapped. Modified versions of swapping are found on many systems, i.e. UNIX and Microsoft Windows


What is the difference between unsecured priority and unsecured non priority?

priority debts must be pais IN FULL, non-priority does not.


Facilities Scheduling?

Facilities Scheduling is used to schedule date and time slots for facilities in order to ensure that there are no scheduling conflict between any parties and to facilitate planning.


Difference between round robin scheduling and Weighted round robin scheduling?

One is weighted, the other is not. Simple as.