> run.sh example_mutex
Main is executing...
Main is locking...
Number of cores: 12
Thread A executing with PID 2...
Thread B executing with PID 3...
Thread D executing with PID 5...
Thread E executing with PID 6...
Thread I executing with PID 10...
Thread G executing with PID 8...
Thread H executing with PID 9...
Thread J executing with PID 11...
Thread C executing with PID 4...
Thread F executing with PID 7...
Main is unlocking...
Thread K executing with PID 12...
Thread L executing with PID 13...
Main is joining 2...
Thread A finishing...
Main is joining 3...
Thread B finishing...
Main is joining 4...
Thread D finishing...
Thread E finishing...
Thread I finishing...
Thread G finishing...
Thread H finishing...
Thread J finishing...
Thread C finishing...
Main is joining 5...
Main is joining 6...
Main is joining 7...
Thread F finishing...
Main is joining 8...
Main is joining 9...
Main is joining 10...
Main is joining 11...
Main is joining 12...
Thread K finishing...
Main is joining 13...
Thread L finishing...
Main is done
