What do you understand by Reentrant Synchronization in Java programming language?

Submitted 3 years, 4 months ago
Ticket #317
Views 265
Language/Framework Java
Priority Low
Status Closed

What do you understand by Reentrant Synchronization in Java programming language?

Submitted on Dec 06, 20
add a comment

1 Answer

Verified

A thread cannot acquire a lock that is held by another thread. But a thread can acquire a lock that it already owns. This happens when a synchronized code calls a method that itself has synchronized code, and both sets of code use the same code.

Submitted 3 years, 4 months ago


Latest Blogs