linux - What is preemption / What is a preemtible kernel? What is it good for? -
In your own words, what is the preemption and what does it mean (linux) kernel?
What are the advantages and disadvantages of prepaid multitasking?
A prepaid kernel is one that can be interrupted between execution of the code - for example to respond to system calls - to do other things and to run other threads, they may Which are not in the kernel
The main advantage of the preemptive kernel is that the system-call does not block the entire system. If a sys-call takes a long time to finish, it does not mean that the kernel can not do anything at this time. The main disadvantage is that it introduces more complexity to the kernel code, it has to handle more end-cases, more granular locking or lock-less structures and algorithms are used.
Comments
Post a Comment