NVIDIA Interview Question

how do you implement a lock/unlock parallel process using mutex?