Dead Lock :- A special type of error that may occur in multithreading Java programming is Dead Lock. When two threads are accessing two synchronized methods such that t1 and t2 are using synchronized method x and y. If the thread in x try to invoke the synchronized method y and on the other hand the thread in y try to invoke the synchronized method x, no one will be successful, they will wait forever. In this situation the whole process is entries to a cycle. This is called Dead Lock.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment