From owner-freebsd-threads@FreeBSD.ORG Sat Apr 5 19:24:36 2003 Return-Path: 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 E1A4037B404 for ; Sat, 5 Apr 2003 19:24:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B83143F93 for ; Sat, 5 Apr 2003 19:24:36 -0800 (PST) (envelope-from davidxu@freebsd.org) Received: from xu (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h363OZUp029175 for ; Sat, 5 Apr 2003 19:24:35 -0800 (PST) (envelope-from davidxu@freebsd.org) Message-ID: <002c01c2fbec$b23756e0$0701a8c0@xu> From: "DavidXu" To: Date: Sun, 6 Apr 2003 11:29:12 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: PS_BLOCKED X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 03:24:37 -0000 Daniel, I saw your code in thr_kern.c assumes that a blocked thread in kernel will always be returned in same upcall(your userland=20 kse)? However, current kernel will returned this context in one of upcall in the same ksegrp, so there is race in your code,=20 I think this may be a kernel bug but not yours, this does not very respects original paper. David Xu