Correct Answer: Both attempt to acquire a lock, but lock() blocks if the mutex is not available, whereas try_lock() returns whether the mutex is available or not.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C++ MCQ Questions