What will happens, when a thread cannot acquire a lock on
an object?
Answer Posted / sudarsan
It will be waiting in runnable stage untill it acquire
object lock.
We call explicitly send this thread to blocked stage using
wait() or sleep() methods to avoid wasting cpu time.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can I run seam with jdk 1.4 and earlier?
What is the difference between the session.get() method and the session.load() method?
What are the call back methods in entity bean?
What are the pros and cons of detached objects?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Explain phantom read?
what is the use of State Factories?
What is the relationship between local interfaces and container-managed relationships?
How will you pass parameters in RMI? Why do you serialize?
What is the relation between the infobus and rmi?
Write a singleton program?
what is Activation Instantinator?
What restrictions are placed on the location of a package statement within a source code file?
How are the elements of a borderlayout organized?
what is a portable component?