Boost logo

Boost :

From: Lance.Diduck_at_[hidden]
Date: 2008-04-21 09:28:48


 
>> Another interesting tidbit is that if I move the focus from the cmd
>> window in which the test is running, it completes. Go figure.
>>

>Priority inversion? I think that Windows boosts the priority of threads
(I thought whole processes actually)
>which have a focused window.

Since this only happens on a SMP, then it is not likely priority
inversion. More likely it is a barrier problem. It would be intersting
to run the same test on the same hardware using MinGW or Cygwin, and see
if you get the same behavior.

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Giovanni Piero
Deretta
Sent: Monday, April 21, 2008 9:10 AM
To: boost_at_[hidden]
Subject: Re: [boost] shared_mutex deadlocks?

On Mon, Apr 21, 2008 at 2:51 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
> >> How often, on what platform?
> >
> > Every time, on a dual core Pentium D running XP64. The program is
> compiled > as 32 bit with MSVC 7.1. It looks like a livelock rather
> than a deadlock, > since the program keeps spinning its wheels at
100% but never completes.
> > The writer thread is probably either blocked or starved. This
> happens on > another (quad core) machine too for which I don't know
> the specs at the > moment.
>
> The other box is XP32 w/ Q6600.
>
> Another interesting tidbit is that if I move the focus from the cmd
> window in which the test is running, it completes. Go figure.
>

Priority inversion? I think that Windows boosts the priority of threads
(I thought whole processes actually) which have a focused window.

--
gpd
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.
	
E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk