Multithreading and Concurrency in Java: Thread Synchronization & Locks

Java SE 13
  • 12 Videos | 1h 32m 46s
  • Includes Assessment
  • Earns a Badge
Likes 11 Likes 11
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 course
    recognize the situations where a race condition could occur in Java
    implement synchronized functions to manage multiple threads updating the same resource
    differentiate between synchronized functions and synchronized blocks in Java
    recall the conditions under which concurrent threads could encounter a deadlock in Java
    identify some of the options available to prevent the occurrence of deadlocks
  • introduce a ReentrantLock in your program to enable exclusive access to a shared resource
    use the tryLock() method of a ReentrantLock to prevent a potentially long wait for a resource
    configure a thread to wait on a resource for a limited amount of time by using the tryLock() method of a ReentrantLock
    implement a StampedLock to regulate access to a shared resource
    distinguish between a readLock and writeLock for a Java StampedLock
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 25s
    UP NEXT
  • Playable
    2. 
    Synchronized Functions
    8m 58s
  • Locked
    3. 
    Working with Multiple Shared Resources
    9m 37s
  • Locked
    4. 
    Synchronized Blocks
    9m 5s
  • Locked
    5. 
    Simulating a Deadlock
    7m 30s
  • Locked
    6. 
    Deadlock Avoidance
    9m 21s
  • Locked
    7. 
    Explicit Locking in Java
    8m 51s
  • Locked
    8. 
    The tryLock() Method
    9m 20s
  • Locked
    9. 
    Invoking tryLock() with a Timeout
    8m 22s
  • Locked
    10. 
    StampedLock in Java
    8m 43s
  • Locked
    11. 
    The readLock() for StampedLock Instances
    3m 55s
  • Locked
    12. 
    Course Summary
    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 of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 29 Likes 29  
Likes 32 Likes 32