pthread programming eats up resources (My or FreeBSD's fault?)

Erich Dollansky erichsfreebsdlist at alogt.com
Fri Feb 21 14:17:42 UTC 2014


Hi,

On Fri, 21 Feb 2014 13:21:22 +0100
Andre Albsmeier <andre at albsmeier.net> wrote:

> On Fri, 21-Feb-2014 at 13:41:33 +0800, David Xu wrote:
> > On 2014/02/21 13:15, Erich Dollansky wrote:

> I would like to recall that my usleep programme was just a first
> shot to demonstrate the problem here on my idle machine. For real
> work loads the other one (pth2) might be better as this one waits
> for all threads to terminate before firing up new ones...

do not worry. It was the perfect thing to demonstrate the problem. We
all should be happy for this masterpiece of code.

Erich


More information about the freebsd-hackers mailing list