Reentrant Monitor in Java

According to Sun Microsystems, Java monitors are reentrant means java thread can reuse the same monitor for different synchronized methods if method is called from the method.


Advantage of Reentrant Monitor

It eliminates the possibility of single thread deadlocking


Flash Soon



Copyright 2017 Design& Development