Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Daniel James <wastebasket@xxxxxxxxxxxxxxxx>
- Date: Tue, 23 Dec 2008 13:34:21 -0000
In article news:<N_M3l.8487$cL7.2218@xxxxxxxxxxxx>, Chris M. Thomasson
wrote:
Exactly how would you accomplish that?
I suspect that answer to that is partly "implementation defined" and
partly "maybe you can't". Most systems provide some sort of signal that
an application can handle even when it's being shut down forcibly and
that (where available) can clearly be used to trigger some sort of
cleanup operation (when necessary) -- it's analogous to exception
handling so shouldn't be rocket-science (where the facilities exist at
all).
How are you going to ensure that a user never terminates a process
while it holds an inter-process synchronization object?
You're talking about process assassination rather than any orderly
shutdown. In general users shouldn't do that -- and shouldn't /have/ to
do that ... and (unless they're root/Administrator) probably *can't* do
that. It is not a "normal" event. I can't say that I'm particularly
worried if it occasionally ends in tears.
IMVHO, its is usually very hard and tedious to introduce robust
fail-safe features into process-wide applications...
It *shouldn't* be hard -- it certainly shouldn't be as hard as it
actually is in practice -- and it *needn't* be tedious. We're starting
to understand the problems associated with exception (/sensu lato/)
safety and starting to develop idioms and to build support into
libraries and frameworks that make exception-safe programming easier
and less tiresome.
It's also becoming obvious that as per-thread throughput reaches
physically-imposed limits we need to rely more and more on multiple
threading and multiple tasks to achieve high performance and
throughput, and that some of these synchronization problems that have
always seemed a little esoteric and outside the purview of the average
jobbing programmer are going to become bread-and-butter work for us
all.
Cheers,
Daniel.
.
- References:
- Why are Boost thread mutexes so slow compared to Pthreads?
- From: Juha Nieminen
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Eric Sosman
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Juha Nieminen
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Juha Nieminen
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: David Schwartz
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: JC
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: David Schwartz
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: JC
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Ian Collins
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Daniel James
- Re: Why are Boost thread mutexes so slow compared to Pthreads?
- From: Chris M. Thomasson
- Why are Boost thread mutexes so slow compared to Pthreads?
- Prev by Date: Re: Why are Boost thread mutexes so slow compared to Pthreads?
- Next by Date: Re: Why are Boost thread mutexes so slow compared to Pthreads?
- Previous by thread: Re: Why are Boost thread mutexes so slow compared to Pthreads?
- Next by thread: Re: Why are Boost thread mutexes so slow compared to Pthreads?
- Index(es):
Relevant Pages
|