Hi List,
I’m fairly new to multithreading, especially in C++.
Things seem generally straightforward when using boost::thread, but there was
one question I had.
I have a mutex that I use to control access to a data
processing object. Whenever I receive new data, I attempt to lock the mutex,
and process it. However, I think it’s possible that I might receive
several data packets while I’m processing, and it’s important that these
packets are processed in order. So I suppose my question is, when a mutex is
unlocked, how is it determined which thread gets to lock it next?
Thanks,
Alec Munro