What will happens, when a thread cannot acquire a lock on
an object?
Answers were Sorted based on User's Feedback
Answer / anonymous
To my mind, this seems ambigious.
Simply another thread may try to use the same object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
In howmany ways a thread can be created?
Explain about thread synchronization inside a monitor?
Describe, in general, how java's garbage collector works?
Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");
If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?
how we can implement interface in jsp ?
What invokes a thread?s run() method?
Difference Between getRequest and PostRequest?
What is Lock Based Protocol and what is its use?
What do you need to set-up a cluster with jboss?
What classes of exceptions may be caught by a catch clause?
Hello, I'm java developer. My skill is programming with java,jsp, struts, struts2+spring, hibernate, eclipse, tomcat, mysql,Oracle,Middlegen and other open source technology. I'm interest work any web base project that use my ability above. The thing is that I have never got any chance to work in this field though i am very much comfort with my skills. So if any body want me then i will happily join you. Also I have also some of my friends if you. If you interest to outsource any project to me then also you are welcome. you can reach me by email at me4bangalore@yahoo.in