What is the difference between pre-emptive and non-preemptive scheduling of threads?
- Fixed time allocation, priority inversion handling
- Thread blocking prevention, dynamic priority adjustment
- Thread priority management, time-slicing for fairness
- Time-sharing among threads, priority boosting
Pre-emptive scheduling involves the operating system preempting a thread's execution based on factors such as priority and time-slicing, ensuring fairness and responsiveness in multitasking environments. Thread priority management and time-sharing mechanisms are typical features of pre-emptive scheduling. On the other hand, non-preemptive scheduling allows threads to run until they voluntarily yield or block, without the system forcibly interrupting their execution. It often involves fixed time allocations or priority inversion handling strategies to manage thread execution.
Loading...
Related Quiz
- The "A" in ACID properties guarantees that database transactions are ___________.
- What is the purpose of MAC filtering in wireless networks?
- In an array, the ___________ gives the maximum number of elements that can be stored.
- Which normal form allows multi-valued dependencies to be removed?
- Which design pattern is used to ensure a class has only one instance and provides a global point of access to it?