|
Boost : |
Subject: Re: [boost] [interprocess] (OS X) waiting on condition variable = CPU 100% + fans running loud
From: Tim Blechmann (tim_at_[hidden])
Date: 2013-01-06 07:28:22
hi,
> Hi, I was implementing a kind of server using shared memory.
> The server should keep idle, waiting for a request and I do this by
> waiting on a condition variable, of course.
>
> I then noticed my fans running high when I let the server waiting a
> little longer while testing and discovered this happens simply because
> of some busy loop implementation for condition waiting.
>
> Is there any reason for that?
>
> Given the interprocess library age, there's no way for implementing a
> non-busy interprocess condition variable waiting available?
not sure if it is related, but it somehow reminds me of an issue that
unnamed semaphores are not implemented on osx ... compare [1]
tim
[1] http://heldercorreia.com/blog/semaphores-in-mac-os-x
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk