<p>Quite a while ago, I answered a question about <a href="https://stackoverflow.com/questions/17252441/can-someone-please-show-me-a-simple-deadlock-with-two-threads-example-in-c/17252501?noredirect=1#comment84906518_17252501">the basic deadlock scenario</a> on Stack Overflow. More recently, I got an interesting comment on it. The poster asked if it was possible to get a deadlock with a single lock and an I/O operation. My first gut reaction was “no, not really”, but it got me…
The continued diary of an experienced C++ programmer. Thoughts on C++ and other languages I play with, Emacs, functional, non functional and sometimes non-functioning programming.