NVIDIA interview question

Create a synchronization barrier for a multithreaded task.