Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Programmer Certification (OCPJP)
whethe the thread will release the lock?
Gong James
Ranch Hand
Posts: 77
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
in the synchronized block has the code:"thread.sleep(50000);"
whether the
thread
will release the lock ?
Junilu Lacar
Sheriff
Posts: 17734
302
I like...
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The
JavaDocs
say that it doesn't lose ownership of any monitors (a.k.a. locks).
------------------
Junilu Lacar
Sun Certified Programmer for the Java� 2 Platform
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
sleep
sleep()
Lock
transition to runnable state
yield() in synchronized code - a Dan Chisholm question
More...