How to experimentally determine the scheduling quantum of a process/thread?
Just to head off any comments to the effect of "why do you need to know this??": This is just a puzzle I was curious about, not something I need to do for any practical reason. Given a typical POSIX system[1], how would you design an experiment to determine the scheduling quantum[2] of a CPU-bound process? [1]: but NOT one that lets you query for this information through a syscall or /proc interface [2]: "Scheduling quantum" is defined as the amount of time a process will run on the CPU without blocking or yielding before its scheduled time is over and the OS lets a different process run. I'm