|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2008-02-11 09:32:14
On Feb 10, 2008, at 1:39 PM, Phil Endecott wrote:
> Something that you might find interesting is that I modified the
> chopstick as follows:
>
> struct Chopstick
> {
> Chopstick() : random_next_(1) {}
> Mutex mut_;
> unsigned random_next_;
> char padding[8000]; <<<============
> };
This made a dramatic change in here too, dropping fastest (retry/
yield) times from around 11s to around 6.5s.
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk