Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2006 20:43:58 -0500
From:      Kurt Miller <kurt@intricatesoftware.com>
To:        freebsd-threads@freebsd.org, Daniel Eischen <deischen@freebsd.org>
Subject:   Re: kse: high prio threads starving low prio threads
Message-ID:  <200601312043.59043.kurt@intricatesoftware.com>
In-Reply-To: <Pine.GSO.4.43.0601312022180.4643-100000@sea.ntplx.net>
References:  <Pine.GSO.4.43.0601312022180.4643-100000@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 31 January 2006 8:28 pm, Daniel Eischen wrote:
> On Tue, 31 Jan 2006, Kurt Miller wrote:
> 
> > I'm working on 1.5 jdk certification on 5.4 and 6.0. One of the
> > jck tests hangs because a high priority thread that is yielding
> > is starving the lower priority threads. The following program
> > demonstrates this problem. Using libthr the program finishes.
> > Using kse hangs using all three scheduling policies.
> >
> > Is this the expected behavior of kse?
> 
> It is the expected behavior for any POSIX threads library
> that supports SCHED_FIFO and priorities and also running
> on a system with one scheduling allocation domain (one CPU).
> libthr does not support posix priority scheduling.

Thanks for the reply. I realized that after sending the message.
The jck test is flawed and we will be appealing it with Sun.

> >
> > Is there a work-around to the starving issue?
> 
> It is working as it should.  Recode it not to use priorities
> if that is what you want.
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601312043.59043.kurt>