SLIDE 2 CPSC-663: Real-Time Systems Real-Time Scheduling in Solaris 2
Scheduling Classes
– round robin scheduling.
– fixed priority scheduling, – not accessible by the user.
– fixed priority scheduling.
– Change scheduling class or other scheduling parameters. interrupt RT sys TS TS +20
59 99 159 RT 59
Scheduling
- State of thread: blocked, runnable,
executing
- Scheduling operations (operations on
dispatch queue) are protected by single spin lock schedlock.
– cpu_thread: thread curr. executing – cpu_dispthread: thread last sched.
for disp
– cpu_idle: special idle thread – cpu_runrun: user-level preemption – cpu_kprunrun: kernel-level preemption – cpu_chosenlevel: next trhead to
preempt
RT0 RT1 RT2 dispatch queue runnable threads S0 DT BT0 BT1 BT2 blocked threads P1 executing thread processor