Quiz 3

Questions relating to the Threading API are covered in this lesson.

We'll cover the following...

Question # 1

Consider the snippet below:

monitor = Monitor.new

monitor.synchronize {
  monitor.synchronize {
    puts "Main thread executing"
 
...