Quiz 2

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

We'll cover the following...

Question # 1

Consider the code snippet below:

Thread.new do
  Thread.stop()
end

"Main thread exiting"
Technical Quiz
1.

What is the output of the program?

A.

Program hangs because the child is stopped

B.

Program exits because the main thread exits

C.

An error is thrown


1 / 1
Press + to interact
Ruby
Thread.new do
Thread.stop()
end
"Main thread exiting"

Question # 2

...