java - How does Thread.sleep() work when called from multiple threads -
sleep() static method of class thread. how work when called multiple threads. , how figure out current thread of execution. ?
or may more generic question how static methods called different threads ? won't there concurrency problems ?
how figure out current thread of execution?
it doesn't have to. calls operating system, sleeps thread called it.
Comments
Post a Comment