THREAD SCHEDULING
- Distinction between user-level and kernel-level threads
- OS only schedules kernel-level threads. User-level threads are scheduled through a direct or indirect (LWP) mapping
- Many-to-one and many-to-many models, thread library schedules user-level threads to run on LWP
- Known as process-contention scope (PCS) since scheduling competition is within the process
- Kernel thread scheduled onto available CPU is system-contention scope (SCS) – competition among all threads in system
- Typically – PCS is priority based. Programmer can set user-level thread priorities
0 comments:
Post a Comment