316 B
316 B
In a JVM without timeslicing, how do two equal-priority threads (t_1 and t_2) share a single processor?
🧵 t_1 will run until it terminates, relinquishes the processor voluntarily, or is preempted by a higher-priority thread. t_2 will not start until t_1 is no longer eligible to run.