Multithreading and Concurrency in Java: Thread Synchronization & Locks
Java
| Intermediate
- 12 videos | 1h 27m 46s
- Includes Assessment
- Earns a Badge
In this demo-only course you will cover the basics of synchronization of threads in Java in order to prevent the unpredictability of the race condition. You will get experience with the implementation of synchronized functions and blocks, and also the use of Java lock objects such as the ReentrantLock and StampedLock.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseRecognize the situations where a race condition could occur in javaImplement synchronized functions to manage multiple threads updating the same resourceDifferentiate between synchronized functions and synchronized blocks in javaRecall the conditions under which concurrent threads could encounter a deadlock in javaIdentify some of the options available to prevent the occurrence of deadlocks
-
Introduce a reentrantlock in your program to enable exclusive access to a shared resourceUse the trylock() method of a reentrantlock to prevent a potentially long wait for a resourceConfigure a thread to wait on a resource for a limited amount of time by using the trylock() method of a reentrantlockImplement a stampedlock to regulate access to a shared resourceDistinguish between a readlock and writelock for a java stampedlockSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 25s
-
8m 58sUpon completion of this video, you will be able to recognize the situations where a race condition could occur in Java. FREE ACCESS
-
9m 37sDuring this video, you will learn how to implement synchronized functions to manage multiple threads updating the same resource. FREE ACCESS
-
9m 5sIn this video, you will learn how to differentiate between synchronized functions and synchronized blocks in Java. FREE ACCESS
-
7m 30sAfter completing this video, you will be able to recall the conditions under which concurrent threads could encounter a deadlock. FREE ACCESS
-
9m 21sIn this video, find out how to identify some of the options available to prevent deadlocks. FREE ACCESS
-
8m 51sIn this video, you will introduce a ReentrantLock in your program to enable exclusive access to a shared resource. FREE ACCESS
-
9m 20sTo prevent a potentially long wait for a resource, find out how to use the tryLock() method of a ReentrantLock. FREE ACCESS
-
8m 22sIn this video, you will configure a thread to wait on a resource for a limited amount of time by using the tryLock() method of a ReentrantLock. FREE ACCESS
-
8m 43sIn this video, learn how to use a StampedLock to regulate access to a shared resource. FREE ACCESS
-
3m 55sIn this video, find out how to distinguish between a read lock and write lock for a Java StampedLock. FREE ACCESS
-
1m 39s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.