Boost logo

Boost :

Subject: Re: [boost] synchorize or strand
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-07-31 20:06:22


On 7/31/2014 7:12 PM, Gavin Lambert wrote:
> On 1/08/2014 00:19, dd wrote:
>> There is multi-threaded application which will access data
>> containers at
>> the same time. Which is the best choice between synchronization and
>> strands.
>
> Strands are a kind of synchronisation. I assume you meant mutexes.

I would guess the OP meant Boost Fibers when 'strands' was mentioned.

>
> Your question is too general and it's not really possible to answer it.
> Different solutions will be optimal (in performance) depending on the
> load characteristics of the application and any timing guarantees that
> it requires; this may or may not coincide with which style of code you
> find it simpler to write and verify for correctness.


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