Boost C++ Libraries: Ticket #6976: Waiting on boost interprocess condition consumes 100% CPU on Windows https://svn.boost.org/trac10/ticket/6976 <p> The problem arises when several threads of several processes waits on same condition. For example, we have application in which we create several threads with thread function like this: </p> <pre class="wiki">while (_running) { boost::interprocess::scoped_lock&lt;boost::interprocess::interprocess_mutex&gt; lock ( _shm-&gt;mutex ) ; // _shm - shared memory _shm-&gt;condition.wait ( lock ) ; // condition is boost::interprocess::interprocess_condition } </pre><p> In main function we simply create several threads, sleep for a some time and stop threads. If we create 4 threads and start 2 applications, or create 3 threads and start 3 applications, or create 2 threads and start 4 applications then we get this problem. Its funny that the problem arising depends on quantity of threads and processes which we start. This is tested on windows 7, windows xp. No problem on Linux system (Debian squeeze) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6976 Trac 1.4.3 anonymous Thu, 19 Apr 2018 12:41:00 GMT <link>https://svn.boost.org/trac10/ticket/6976#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6976#comment:1</guid> <description> <p> Any solution for this? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion GaztaƱaga</dc:creator> <pubDate>Sun, 22 Apr 2018 20:47:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6976#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6976#comment:2</guid> <description> <p> This problem should be already fixed since Boost 1.55 Release. </p> </description> <category>Ticket</category> </item> </channel> </rss>