How to suspend a java thread for a small period of time, like 100 nanoseconds?
The granularity of sleeps is generally bound by the thread scheduler’s interrupt period. In Linux, this interrupt period is generally 1ms in recent kernels. In Windows, the scheduler’s interrupt period is normally around 10 or 15 milliseconds If I have to halt threads for periods less than this, I normally use a busy wait EDIT: … Read more