I am looking at programming an application that uses sockets. My concern is with thread safety as I have never used threading before except with gui worker threads. I want the server application to service multiple clients on separate threads. As I have not started programming the server yet I was hoping you will be able to aid me in my design by telling me what I need to know to make my server thread safe.
Also if I had a class called X with a member function called y and I created two objects of this class on separate threads. Can I call the member function Y with out any mutex as the member function is on two separate instances. I am guessing the answer is no because member function Y is the same code in memory just wish different this pointers.
Thanks any help