From owner-freebsd-java Tue Dec 11 16:59: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by hub.freebsd.org (Postfix) with ESMTP id 233CC37B405 for ; Tue, 11 Dec 2001 16:59:05 -0800 (PST) Received: from rpsmtp1.aist.go.jp by mx1.aist.go.jp with ESMTP id fBC0x4022385 for ; Wed, 12 Dec 2001 09:59:04 +0900 (JST) env-from (k.shudou@aist.go.jp) Received: from mail01.aist.go.jp by rpsmtp1.aist.go.jp with ESMTP id fBC0x3P02532 for ; Wed, 12 Dec 2001 09:59:03 +0900 (JST) env-from (k.shudou@aist.go.jp) Received: from localhost by mail01.aist.go.jp with ESMTP id fBC0x2C05927 for ; Wed, 12 Dec 2001 09:59:02 +0900 (JST) env-from (k.shudou@aist.go.jp) To: freebsd-java@FreeBSD.ORG Subject: Native, kernel and user-space threads From: shudo@computer.org X-Mailer: Mew version 1.94.2 on XEmacs 21.1 (Cuyahoga Valley) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011212095914G.shudoh@aist.go.jp> Date: Wed, 12 Dec 2001 09:59:14 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 24 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I wanna be convinced of the meaning of `native' threads. Currently, FreeBSD (release and stable) does not have a threading mechanism implemented in kernel space. I suppose native threads you refer is a threads library which have POSIX threads API and implemented in user space. Is this true? If so, the present difference between native threads and green threads seems to be their own APIs. Both of them are user-space threading libraries. Migration to the POSIX interface is worth much to support forthcoming Java 2 SDK 1.4. But, what are real present merits of native threads without kernel threading for JDK users? I have been satisfied by green threads implementations on Linux and FreeBSD while developing a JIT compiler for them over three years. It performs faster than Linux (kernel) threads with many applications because it is implemented in user space. I do not have SMP machines :) Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message