title: Thread Synchronization - Critical Section or Mutex?
body: <p>If I need to synchronize two threads that both call a function with send() on a specific socket, would it be more useful to warp a critical section on the send() function or look into using a mutex? (since a socket is a kernel object)</p>