A very simple way to avoid deadlock while using N threads is to impose an ordering on the locks and force each thread to follow that ordering. Thus, if all threads lock and unlock the mutexes in the same order, no deadlocks can arise.
Java Interview Java Script
Subscribe to:
Post Comments (Atom)
I cannot thank you enough for the blog.Thanks Again. Keep writing.
ReplyDeleteSAP PP training
SAP Qm training
SAP Sd training
SAP Security training
SAP Grc training from india
Wokrday Training