How can threads of execution be running concurrently when there is a thread scheduler?
问题 From the definitions I've been reading: threads are basically pieces of code that are running concurrently (at the same time) . However how can they be running concurrently with the existence of a thread scheduler? I read that the thread scheduler basically chooses randomly a thread to run at a certain moment from the pool of Runnable threads. From that i got that at a precise point of time, only one runnable thread is truly in the run state(running). ( all of this is from SCJP Sun Certified