The code below uses Mutex and ConditionVariable to make two threads run in a strictly defined order. You need to determine the exact output of the program to stdout.
Mutex#synchronize, ConditionVariable#wait, and that ensure runs when exiting the begin block.main.rb.ruby main.rb
3.3.0ruby main.rb runThread from the standard library, without additional gemsClick a line and write what it prints. Explanation is optional.