Java 9 Concurrency- Advanced Elements : Monitoring a Lock Interface | packtpub.com

preview_player
Показать описание
This playlist/video has been uploaded for Marketing purposes and contains only selective videos.

A critical section is a block of code that accesses a shared resource and can't be executed by more than one thread at the same time. This mechanism is implemented by the Lock interface and the ReentrantLock class.
• Create a MyLock object named lock
• Create an array of five Thread objects
• Create a loop with 15 steps

For the latest Application development video tutorials, please visit

Рекомендации по теме
visit shbcf.ru