Multithreading and Concurrency in Java: Thread Synchronization & Locks

Java    |    Intermediate
  • 12 videos | 1h 27m 46s
  • Includes Assessment
  • Earns a Badge
Rating 4.9 of 8 users Rating 4.9 of 8 users (8)
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

  • 2m 25s
  • 8m 58s
    Upon completion of this video, you will be able to recognize the situations where a race condition could occur in Java. FREE ACCESS
  • Locked
    3.  Working with Multiple Shared Resources
    9m 37s
    During this video, you will learn how to implement synchronized functions to manage multiple threads updating the same resource. FREE ACCESS
  • Locked
    4.  Synchronized Blocks
    9m 5s
    In this video, you will learn how to differentiate between synchronized functions and synchronized blocks in Java. FREE ACCESS
  • Locked
    5.  Simulating a Deadlock
    7m 30s
    After completing this video, you will be able to recall the conditions under which concurrent threads could encounter a deadlock. FREE ACCESS
  • Locked
    6.  Deadlock Avoidance
    9m 21s
    In this video, find out how to identify some of the options available to prevent deadlocks. FREE ACCESS
  • Locked
    7.  Explicit Locking in Java
    8m 51s
    In this video, you will introduce a ReentrantLock in your program to enable exclusive access to a shared resource. FREE ACCESS
  • Locked
    8.  The tryLock() Method
    9m 20s
    To prevent a potentially long wait for a resource, find out how to use the tryLock() method of a ReentrantLock. FREE ACCESS
  • Locked
    9.  Invoking tryLock() with a Timeout
    8m 22s
    In 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
  • Locked
    10.  StampedLock in Java
    8m 43s
    In this video, learn how to use a StampedLock to regulate access to a shared resource. FREE ACCESS
  • Locked
    11.  The readLock() for StampedLock Instances
    3m 55s
    In this video, find out how to distinguish between a read lock and write lock for a Java StampedLock. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 27 users Rating 4.6 of 27 users (27)
Journey Java Journey
Rating 4.5 of 8 users Rating 4.5 of 8 users (8)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.9 of 8 users Rating 4.9 of 8 users (8)
Rating 4.3 of 7 users Rating 4.3 of 7 users (7)
Rating 3.6 of 59 users Rating 3.6 of 59 users (59)