<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I/O on The Lone C++ Coder's Blog</title><link>https://www.lonecpluspluscoder.com/tags/i/o/</link><description>Recent content in I/O on The Lone C++ Coder's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 04 Apr 2018 07:00:17 +0000</lastBuildDate><atom:link href="https://www.lonecpluspluscoder.com/tags/i/o/index.xml" rel="self" type="application/rss+xml"/><item><title>Can you get a deadlock with a single lock and an IO operation?</title><link>https://www.lonecpluspluscoder.com/2018/04/04/can-you-get-a-deadlock-with-a-single-lock-and-an-io-operation/</link><pubDate>Wed, 04 Apr 2018 07:00:17 +0000</pubDate><author>Timo Geusch</author><guid>https://www.lonecpluspluscoder.com/2018/04/04/can-you-get-a-deadlock-with-a-single-lock-and-an-io-operation/</guid><description>&lt;p&gt;Quite a while ago, I answered a question about &lt;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"&gt;the basic deadlock scenario&lt;/a&gt; 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 &amp;ldquo;no, not really&amp;rdquo;, but it got me thinking. So let&amp;rsquo;s try to unroll the scenario and see if we can reason at least about my gut feeling.&lt;/p&gt;</description></item></channel></rss>