Synchronization paragraph from java documentation -


everyone!

i reading java doc this:

https://docs.oracle.com/javase/specs/jls/se8/html/jls-17.html

could anyone,please, tell more about

the java programming language neither prevents nor requires detection of deadlock conditions. programs threads hold (directly or indirectly) locks on multiple objects should use conventional techniques deadlock avoidance, creating higher-level locking primitives not deadlock, if necessary.

thanks.

it means "do not expect java handle or avoid deadlocks you. if not write code there no way java tell in advance. so, responsibility make sure code not cause deadlocks".


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -