I have the question about synchronization after looking at some articles in the web.
If I am using mutex for controlling the unique session resource, what will happen if there exists several thread which want to request the session resource which is in use? As I don't know how to put them in queue and how the first waiting get the session resource? It is mainly in coding sample as I want.