Process S (sleep pressure) rises while awake, decays while asleep. Process C (circadian clock) shifts the sleep/wake thresholds on a 24h cycle. Sleep starts when S reaches the upper threshold, ends when S falls to the lower one.