> run.sh example_thread
Thread A executing...
Thread B executing...
Thread C executing...
C 0...
B 0...
A 0...
Waiting for 2...
C 1...
A 1...
B 1...
C 2...
A 2...
B 2...
B 3...
A 3...
C 3...
A 4...
C 4...
B 4...
A 5...
C 5...
B 5...
A 6...
B 6...
C 6...
A 7...
B 7...
C 7...
A 8...
C 8...
B 8...
A 9...
C 9...
B 9...
Thread A done!
Waiting for 3...
Thread B done!
Waiting for 4...
Thread C done!
Finis
