i am programming a Mulithreaded Client/Server between processes program which uses message queue's. The Server will handle the message's send by the clients, and later it should give the work to a threads to continue handling their it's processes. Every client will have a different message queue.
After making the connection of the 1st client and sending a thread to handle it Using pthread_join doesnt allow me to to receive new connections that are on main thread,cause it's blocked how can i fix it.
- Receiving New Messages in the main thread ( or other solution if possible)
- Sending to threads to handle a client message's and after.
- Getting back to receive new message
pthread_join? - David Schwartz