Is sleep a blocking call?

Tâm Tây

New member
Is sleep a blocking call?
Answer
sleep is blocking. We now understand that we cannot use Thread. sleep – it blocks the thread. This makes it unusable until it resumes, preventing us from running 2 tasks concurrently.
 

Tìm kiếm

Back
Top