I am making a small 2d online game and I currently have drawing, character moving and socket handling all done in the main thread. I think that it would be more convenient to create a own thread for those things, especially for the socket handling.
It's my first multi threaded application so should I basically just make the threads with this? I read that I just use mutexes or criticalsections to prevent two threads from accessing the data at the same time, which should I use?