update 5.4 Thread-synchronization-with-condition-variable