Frage im Vorstellungsgespräch bei NVIDIA

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