Java mutexes are recursive, so you can call the synchronous method recursively or call another synchronized method for which you already have a lock. You will need to tell us what exactly you are trying to do, though .... a lot of things with thread blocking / synchronization, if done incorrectly, can lead to a deadlock, and itβs not clear from your question what you are trying to do.
source share