Amortizing The Switch
lmbench measures a context switch on this machine at 3.2 microseconds. The timer interrupt fires every 250 microseconds, and a time slice must be a whole number of timer periods.
You want switching to consume less than 1 percent of wall-clock time, where the overhead fraction of a slice is
What is the shortest legal time slice that meets the target?
Sign in to answer questions and track your progress
Sign In