Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-06-28 11:48:05


From: Peter Dimov <pdimov_at_[hidden]>
> From: "Greg Colvin" <gcolvin_at_[hidden]>
>
>
> > From: Peter Dimov <pdimov_at_[hidden]>
> > >
> > > My limited experience with threads has always followed the pattern
> "spawn a
> > > worker thread to perform lengthy operation X without blocking the main
> > > thread, leaving it responsive." (Minor variations include "to perform
> > > background operation Y", like keeping a buffer full of data.)
> > >
> > > What is the usual 'join' model?
> >
> > "And join the worker thread when the main thread needs the
> > result of the work."
>
> But joining the worker thread blocks the main thread.

Which needs the result at that point before it can continue,
so blocking is appropriate?


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