answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between preemptive and non preemptive system.with example?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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 main difference between a preemptive scheduler and a non-preemptive scheduler?

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.


What is latence?

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 has and have and give an example?

the difference between has and have is that you use has in sentences with : ( she , he and it ) for example : she has a book . but you use have in sentences with : ( I , you , we and they ) for example : you have a book , I have a book .


Difference between eg and ie?

example given......in example


What is a preemptive and non preemptive algorithm and explain with example?

Preemptive scheduler reruns scheduling decision when process becomes ready. If the new process has priority over running process, the CPU preempts the running process and executes the new process. Non-preemptive scheduler only does scheduling decision when running process voluntarily gives up CPU. In effect, it allows every running process to finish its CPU burst.


What is the difference between local market and national market explain with example?

what is the difference between local market and national market


What difference in meaning is there between ' for example' and ' for instance'?

There is very little difference unless you take away the 'for' :)


Example of fundamental difference between a polynomial function and an exponential function?

fundamental difference between a polynomial function and an exponential function?


What does the word difference mean when your doing math?

Difference" means subtraction. for example the "difference" between 9 and 2 is 7


Explain the difference between salary and wage and give example to illustrate who earns salary and who earns wage?

What is the difference between a salary and commission


IS An example of a carcinogen xrays?

whats the difference between carcinogenes and mutagens