View Full Version : Deadlocks and Remedies in Java


Rick
01-10-03, 09:52 AM
Could someone explain in simple terms how a deadlock scenario might be averted using Multithreading in Java?I dont want theory,i know theory stuffs like moniters etc...I want core programming explainations...

Porf might be a bit of help...thanks...


(PS:i am currently busy,with my exams and stuff,i may not be able to reply for some days...thanks...)

bye!

chroot
01-10-03, 12:31 PM
Originally posted by zion
Could someone explain in simple terms how a deadlock scenario might be averted using Multithreading in Java?I dont want theory,i know theory stuffs like moniters etc...I want core programming explainations...

Porf might be a bit of help...thanks...


(PS:i am currently busy,with my exams and stuff,i may not be able to reply for some days...thanks...)

bye!
You answered your own question. Java provides the synchronized keyword, which waits on the monitor of either some specific object, or on the monitor of the object being referenced.

- Warren