The Thread.yield() static method (in Java) causes the currently executing thread object to temporarily pause and allow other threads to execute.
If more than one thread is executing (in a CPU with hyperthreading functionality), which thread will pause?
The one that called
Thread.yield…