- Exercise

In this lesson, we'll solve an exercise based on a variation of the sleep time of sleeper.

We'll cover the following

Problem statement #

In the exercise, we need to vary the sleep time of the Sleeper class in the example from the previous lesson.

  • Variations in the runtime are not synchronized undefined behavior.

Get hands-on with 1200+ tech skills courses.