Does a thread gives up monitor lock when Thread.sleep() is called?
From the Javadocs:
Causes the currently executing thread to sleep (cease execution) for the specified number of milliseconds plus the specified number of nanoseconds. The thread does not lose ownership of any monitors.
Edited 7 Years Ago
by ~s.o.s~: n/a
No. However, Thread.wait() does, until it is notified, at which point it regains the monitor if it is the chosen thread that is woken up.
i have not been here in a while. so here I am practicing building a forensic managment java application but the thing, i am trying to connect to ...
hi! I want to create a procedure which execute given below query using dynamic sql. i am getting some error i.e. "Msg 156, Level 15, State 1, Line 1
Hi Every Body
i have a server and a numbers of clients and i when i want to open a page on the clients machine it is open in the ...