Quantcast
Channel: Cooperative Scheduling vs Preemptive Scheduling? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by M.Noufale for Cooperative Scheduling vs Preemptive Scheduling?

$
0
0

Cooperative SchedulingA task will give up the CPU on a point called (Synchronization Point). It can use something like that in POSIX:

  • pthread.yield(Task_ID)

Preemptive SchedulingThe main difference here is that in preemptive scheduling, the task may be forced to relinquish the CPU by the scheduler. For instance, two tasks with same priority, while one of them running, its time slice is ended.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images