New barrier synchronization multi-threading example, `checkpoint`