I have a c application that connects to a TCP server as a client and the socket number that is returned from connect() I attempt to use in the main application and in 2 subthreads.
Is it ok to do this? For example my main application could be performing a socket write while the worker thread might be trying to read from the socket at the same time? It's just recently my application crashed and I'm worried this might be the cause