Qualcomm interview question

How does thread synchronization work in CUDA?