Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2003 18:00:32 -0500 (EST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: pthread ^T problem on recent -CURRENT: death in libc_r mutex
Message-ID:  <Pine.NEB.3.96L.1030104175853.82416D-100000@fledge.watson.org>
In-Reply-To: <20030104142844.A65065@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 4 Jan 2003, Juli Mallett wrote:

> * De: Robert Watson <rwatson@FreeBSD.org> [ Data: 2003-01-04 ]
> 	[ Subjecte: pthread ^T problem on recent -CURRENT: death in libc_r mutex ]
> > 
> > Juli Mallett pointed me at the following reproduceable problem on my
> > -current notebook with userland/kernel dated Dec 29:
> 
> Incidentally, this doesn't illustrate the problem I was actually trying
> to point out.  Try making the sleep's pthread_yield().  That will make
> the threads never run again.  sleep is the hack I've had to do.  In my
> appp, I have a 'my_yield' function which will sleep on FreeBSD, and
> yield on everywhere else :(

Hmm.  I'm not experiencing that problem -- if I replace the sleep() with
pthread_yield(), I get a long sequence of '1's until thread2 is started,
and then clean alternation between '1' and '2'.  I don't see any failure
to schedule a thread after it has yielded.

I'm updating my box from Dec 29 to today to see if that makes a difference
either way on either problem.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1030104175853.82416D-100000>