Looked around, but could not find any link justifying the answer for AF_UNIX sockets.
My implementation is on a linux system, I have an AF_UNIX SOCK_STREAM socket,
- one receiver thread on this socket
- few worker threads which can call 'send()' on this socket.
My question is - are AF_UNIX socket 'send()' thread safe? If I have threads parallely/concurrently calling send on the AF_UNIX socket fd, will kernel take care of the synchronization?
I went through multiple links, but all are related to TCP/UDP (AF_INET) sockets, so if anyone could suggest a link that justifies the answer, or could provide some insight into the kernel code, it would be of great help.