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

257 views · Published 8 September 2017 · 4:37 · Indexed 10 November 2026

Channel: Packt · 2017 · Science & Technology

Watch on YouTube

This playlist/video has been uploaded for Marketing purposes and contains only selective videos. 

For the entire video course and code, visit [http://bit.ly/2vS3M7i].

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
http://bit.ly/1VACBzh


Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

More from this channel