Today's Outline



Timer Code Synchronization



Example system clock race condition



Sources of Concurrency in the Kernel



integer atomic operations



bit atomic operations



spinlocks, preemption, and interrupts



semaphores