ReentrantLock concurrency APIs in JAVA Example

preview_player
Показать описание
ReentrantLock is a mutually exclusive lock with the same behavior as the intrinsic/implicit lock accessed via the synchronized keyword.ReentrantLock, as the name suggests, possesses reentrant characteristics. That means a thread that currently owns the lock can acquire it more than once without any problem.
Below is the GitHub link to download source:
Рекомендации по теме
Комментарии
Автор

Ur example similar to synchronised block. Why its differ from synchronised? Could you please provide the example for that.. and ur provided video doesn't prove that its for reentrant.. i want to know why its called reentrant.pls provide the example related to this

vivekguptacs
Автор

Please upload micro web service's

syedwaseemahmed
visit shbcf.ru