answersLogoWhite

0


Best Answer

Non-preemptive scheduler gives a process control of computer until it gives it up.

Preemptive scheduler ensures that all processes are given equal(or different) priority, so they run only for a short amount of time, before control is given to another process.

Which means that preemptive system is capable of running many processes 'at once', without crashing when one process refuses to give up CPU control

If a bug like infinite loop, or a process refusing to give up control(a virus for example) is encountered, only thing left to do is to reset the system.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the main difference between a preemptive scheduler and a non-preemptive scheduler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Performing Arts

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


Difference between preemptive and non preemptive?

if block Ki of size Ni is to be transferred to memory M1 & the blocks occupying the space in M1 can't be preempted by block Ki then it is necessaray to find or create a space of Ni words inM1 . this process is called non preemptive allocation....non preemptive allocation can't make efficient use of memory allocation.whenever preemptive allocation is used for efficient use of the available memory space and rellocation can be done.


What is the differences between the job scheduling and process scheduling?

Jobs or processes are the same. Whereas, Job scheduler and CPU scheduler are two different terms. Job scheduler is also called long term scheduler and CPU scheduler is called short term scheduler. While Job scheduler selects the processes from the job pool (Job pool is on the Hard disk) and load them in to the memory (Main Memory or RAM) for execution. in other hand CPU scheduler selects among the processes (in RAM) that are ready for execution and allocates the CPU to one of them. Hope I got it right and answered your query. Sorry for any mistakes as I'm not perfect as well. :) Cheers, KV


Difference between short term long term and medium term in OS?

Long-Term SchedulingLong-term scheduling performs a gatekeeping function. It decides whether there's enough memory, or room, to allow new programs or jobs into the system. It limits the degree of multi-tasking to prevent slow performance on currently-running programs. When a job gets past the long-term scheduler, it's sent on to the medium-term scheduler. Medium-Term SchedulingThe medium-term scheduler makes the decision to send a job on or to sideline it until a more important process is finished. Later, when the computer is less busy or has less important jobs, the medium-term scheduler allows the suspended job to pass. Short-Term SchedulingThe short-term scheduler takes jobs from the "ready" line and gives them the green light to run. It decides which of them can have resources and for how long. The short-term scheduler runs the highest-priority jobs first and must make on-the-spot decisions. For example, when a running process is interrupted and may be changed, the short-term scheduler must recalibrate and give the highest-priority job the green light.


Difference between system software and operating system?

difference between operating system and system software?

Related questions

Difference between preemptive and non preemptive system.with example?

Preemptive scheduling allows a process to be interrupted in the midst of its execution, taking the CPU away and allocating it to another process.Non-preemptive scheduling ensures that a process relinquishes control of the CPU only when it finishes with its current CPU burst.


Explain the difference between a planner and a scheduler?

A planner is a calendar or diary with which you can roughly plan the activities which you will undergo but a scheduler is a calendar or diary that you maintain so as to plan the activities accurately on time.


What is the difference between process scheduling and CPU scheduling?

1. Job scheduler is also called long term scheduler and CPU scheduler is called short term scheduler.2. Job scheduler selects the processes from the job pool and load them in to the memory for execution. in other hand CPU scheduler selects among the processes that are in ready to execute and allocate the CPU to one of them.3. CPU scheduler is faster than the process scheduler.Read more: What_is_the_difference_between_the_job_scheduler_the_CPU_scheduler


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 difference between the job scheduler the CPU scheduler?

1. Job scheduler is also called long term scheduler and CPU scheduler is called short term scheduler. 2. Job scheduler selects the processes from the job pool and load them in to the memory for execution. in other hand CPU scheduler selects among the processes that are in ready to execute and allocate the CPU to one of them. 3. CPU scheduler is faster than the process scheduler.


Difference between preemptive and non preemptive?

if block Ki of size Ni is to be transferred to memory M1 & the blocks occupying the space in M1 can't be preempted by block Ki then it is necessaray to find or create a space of Ni words inM1 . this process is called non preemptive allocation....non preemptive allocation can't make efficient use of memory allocation.whenever preemptive allocation is used for efficient use of the available memory space and rellocation can be done.


What is the difference between cooperative multitasking and preemptive multitasking?

Cooperative multitasking is multitasking tohelp someone else, while peemative multitasking is multiaatsking for yourself.


What is the differences between the job scheduling and process scheduling?

Jobs or processes are the same. Whereas, Job scheduler and CPU scheduler are two different terms. Job scheduler is also called long term scheduler and CPU scheduler is called short term scheduler. While Job scheduler selects the processes from the job pool (Job pool is on the Hard disk) and load them in to the memory (Main Memory or RAM) for execution. in other hand CPU scheduler selects among the processes (in RAM) that are ready for execution and allocates the CPU to one of them. Hope I got it right and answered your query. Sorry for any mistakes as I'm not perfect as well. :) Cheers, KV


What are the advantages of preemptive scheduling policy?

The main advantage of preemptive scheduling is real-time response on the task level. The task response time - i.e., the time required to activate a task waiting for an interrupt - largely depends only on the interrupt latency (the time span during which no other interrupts can be accepted). In cooperative scheduling, the task response time is the longest time span that can elapse between two calls to the kernel. Unfortunately, an upper limit for this time span cannot be defined in many cases. It is the responsibility of the programmer to ensure that the time spans between calls to the kernel or the scheduler are sufficiently small.


What is Dispatch latency?

The time between when a thread is scheduled and when it begins to execute. Theoretically, in a preemptive OS the dispatch latency for a high-priority thread should be very low. However, in practice preemptive OSs are non-preemptive at times; for example, while running an interrupt handler. The duration of the longest possible non-preemptive interval is said to be the worst-case dispatch latency of an OS.


What is the difference between pre emptive and non preemptive scheduling?

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.


What is the duty of a scheduler?

We differentiate between the dispatcher and the scheduler as the scheduler works on a longer time span to ensure eve workload. The dispatcher can the focus on the shorter time, see what is best suited candidate to be given a time slot, and avoid "fairness" such as attempt for monopolizing the resources. The scheduler's time interval is small enough to allow real time events, there are millions of things that can be executed for every 20th millisecond.