You are currently not logged in and your progress will not be saved. Register or Log in

Lesson 8 – Thread synchronization

Overview

In multithreaded applications, the need for thread synchronization arises when multiple threads are running concurrently. In this lesson, we will explain the need for thread synchronization and how to use semaphores and mutexes as thread synchronization mechanisms.

In the exercise section, we will highlight two common thread synchronization problems and show how to solve them using semaphores and mutexes.

Objective

  • Understand the need for thread synchronization mechanisms
  • Learn the basic properties of semaphores and mutexes
  • Practice through hands-on exercises how to use semaphores and mutexes for thread synchronization