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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -