next up previous contents
Next: Initialization Up: Scheduler API Previous: The sched_info structure   Contents

Scheduler Lock

        spinlock_t sched_lock
The rtker ensures that all the scheduler functions are called sequentially. This is achieved by locking the sched_lock spinlock before calling any function & releasing it at the exit. Because of this the scheduler code need not be re entrant. This considerably reduces the job of the scheduler writer, for he need not worry about race conditions on scheduler data structure. This is ensured by the kernel itself.

Soumyadeb Mitra 2002-08-07