In a multi-threaded Linux C application using POSIX threads (pthreads), which...
Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.
In a multi-threaded Linux C application using POSIX threads (pthreads), which synchronization primitive is primarily used to protect a non-reentrant critical section of code?
Show answer & explanation
Answer: A. pthread_mutex_t
Verified technical evaluation based on core computer science and mathematical principles.
Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.