> run.sh example_mutex
Main is executing...
Main is locking...
Number of cores: 8
Thread A executing with PID 1...
Thread B executing with PID 2...
Thread C executing with PID 3...
Thread D executing with PID 4...
Thread E executing with PID 5...
Thread F executing with PID 6...
Thread G executing with PID 7...
Main is unlocking...
Main is joining 1...
Thread H executing with PID 8...
Thread A finishing...
Main is joining 2...
Thread D finishing...
Thread H finishing...
Thread G finishing...
Thread C finishing...
Thread F finishing...
Thread E finishing...
Thread B finishing...
Main is joining 3...
Main is joining 4...
Main is joining 5...
Main is joining 6...
Main is joining 7...
Main is joining 8...
Main is done
