During this search, preemption should not be inhibited. Long critical sections should be divided into smaller pieces. If an interrupt occurs that makes a high priority task ready during the insertion of a low priority task, that high priority task can be inserted and run immediately before the low priority task is inserted.
During this search, preemption should not be inhibited Long critical sections should be divided into smaller pieces. If an interrupt occurs that makes a high priority task ready during the insertion o.f a low prio,rity task that high priority task can be inserted and run immediately before the low priority task is inserted.