answersLogoWhite

0


Best Answer

in pre emptive scheduling. a limited time period is fixed for every process in the CPU. no matter whether the process is completed or not ... the resource assinged to it will be taken back back abd will be given to the next process in the queue.

while in non preemptive the resorces are with a process untill it finishes completely others wait for their turn till then. this kind of scheduling has a high probability of going into a deadlock.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Tasks are usually assigned with priorities. At times it is necessary to run a certain task that has a higher priority before another task although it is running. Therefore, the running task is interrupted for some time and resumed later when the priority task has finished its execution. This is called preemptive scheduling.

Eg: Round robin

In non-preemptive scheduling, a running task is executed till completion. It cannot be interrupted.

Eg First In First Out

This answer is:
User Avatar

User Avatar

Wiki User

12y ago
  • Non-Preemptive: Non-preemptive algorithms are designed so that once a process enters the running state(is allowed a process), it is not removed from the processor until it has completed its service time ( or it explicitly yields the processor).

    context_switch() is called only when the process terminates or blocks.

  • Preemptive: Preemptive algorithms are driven by the notion of prioritized computation. The process with the highest priority should always be the one currently using the processor. If a process is currently using the processor and a new process with a higher priority enters, the ready list, the process on the processor should be removed and returned to the ready list until it is once again the highest-priority process in the system.

    context_switch() is called even when the process is running usually done via a timer interrupt.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

In preemptive scheduling, a process that is being allotted processor is forcely removed and the processor is given to some other process.

In non-preemptive scheduling, there are no forcible removals.

FCFS,SJF are non-preemptive.

Round Robin is preemptive

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

On a preemptive kernel, a process running in kernel mode can be replaced by another process while in the middle of a kernel function.

On a nonpreemptive kernel, process A would just have used all the processor time until he is finished or voluntarily decides to allow other processes to interrupt him (a planned process switch).

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

In preemptive scheduling we preempt the currently executing process.

In non preemptive we allow the current process to finish its CPU burst time.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between pre emptive and non preemptive scheduling?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is windows xp preemptive or non preemptive?

It uses pre-emptive scheduling. It has what is called a pre-emptive multi-tasking kernel.


Is it pre-emptive or pre emptive or preemptive?

preemptive or pre-emptive.


What scheduling algo is used for real time OS?

Cooperative schedulingPreemptive scheduling Rate-monotonic schedulingRound-robin schedulingFixed priority pre-emptive scheduling, an implementation of preemptive time slicingFixed-Priority Scheduling with Deferred PreemptionFixed-Priority Non-preemptive SchedulingCritical section preemptive schedulingStatic time schedulingEarliest Deadline First approachStochastic digraphs with multi-threaded graph traversal


What is pre-emptive multitasking?

In preemptive multitasking scheduling processes , scheduler can interrupt one running process and and allocate CUP to another process without letting the complete the task of first process. Window 95 introduced preemptive scheduling and Mac also uses this scheduling process. Bharat Rawal


What is preemptive reforms?

What is pre-emptive groups


Is the Linux kernel pre-emptive or non-premptive?

It is preemptive, as of the 2.6 series. 2.4 and prior were non-preemptive.


What do you mean by non-preemptive shortest job first scheduling explain with an example?

Non pre-emptive means once CPU starts executing one process, it will not be taken out of the CPU until it is terminated or it has to wait for some event. In preemptive SJF scheduling, current running process is moved to the ready queue when a new process with a shorter CPU burst joins the ready queue.


Which is one of pre-emptive scheduling algorithm?

Priority based algorithm


What is Preemptive tasking?

Pre-emptive tasking is a process whereby a task is temporarily interrupted in a computer system. This will determine how long it takes for a task to be completed.


When was Pre-Emptive False Rapture created?

Pre-Emptive False Rapture was created on 2007-07-23.


Definition of preemptive scheduling?

Pre-emptive scheduling refers to schemes such as SRTF (Shortest remaining time first), In which a process can be "pre-empted" (having the CPU time taken off it) in the middle of a burst. For example under SRTF: Process | Arrival Time(nanoseconds) | Burst Time(nanoseconds) P1 0 30 P2 10 5 For the first 10ns P1 will be running, but at 10s, P2 arrives, because it only has 5 nanoseconds of CPU time remaining till the completion of the burst as opposed to 20 for P1, P1 will be pre-empted, and P2 will run instead. P1 will then start running again at 15ns. |< (P1 is pre-empted) | P1 | P2 | P1 | 0ns 10ns 15ns


What is the Go-it-Alone foreign policy?

Pr-emptive