Date: Tue, 31 Jan 2006 20:48:54 -0500 (EST) From: Daniel Eischen <deischen@freebsd.org> To: Kurt Miller <kurt@intricatesoftware.com> Cc: freebsd-threads@freebsd.org Subject: Re: kse: high prio threads starving low prio threads Message-ID: <Pine.GSO.4.43.0601312046140.4643-100000@sea.ntplx.net> In-Reply-To: <200601312043.59043.kurt@intricatesoftware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 31 Jan 2006, Kurt Miller wrote: > 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. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I missed this part previously. Our default scheduling policy (SCHED_OTHER) is SCHED_RR and supports thread priorities. This is allowed by POSIX, so the behavior is also as expected. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0601312046140.4643-100000>