From owner-freebsd-threads@FreeBSD.ORG Wed Feb 1 01:44:01 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E11D16A420; Wed, 1 Feb 2006 01:44:01 +0000 (GMT) (envelope-from kurt@intricatesoftware.com) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id E520B43D49; Wed, 1 Feb 2006 01:44:00 +0000 (GMT) (envelope-from kurt@intricatesoftware.com) Received: from [172.16.1.72] (ool-457a77e8.dyn.optonline.net [69.122.119.232]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0ITZ0021ZJHBOG50@mta5.srv.hcvlny.cv.net>; Tue, 31 Jan 2006 20:44:00 -0500 (EST) Date: Tue, 31 Jan 2006 20:43:58 -0500 From: Kurt Miller In-reply-to: To: freebsd-threads@freebsd.org, Daniel Eischen Message-id: <200601312043.59043.kurt@intricatesoftware.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline References: User-Agent: KMail/1.9 Cc: Subject: Re: kse: high prio threads starving low prio threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 01:44:01 -0000 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. >