From owner-freebsd-arch Fri Dec 10 12:38:59 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 69CA415D85 for ; Fri, 10 Dec 1999 12:17:50 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id VAA26360 for ; Fri, 10 Dec 1999 21:17:36 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id VAA38148 for freebsd-arch@freebsd.org; Fri, 10 Dec 1999 21:17:36 +0100 (MET) Received: from c62443-a.frmt1.sfba.home.com (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by hub.freebsd.org (Postfix) with ESMTP id A0F9C15AE2 for ; Fri, 10 Dec 1999 11:43:17 -0800 (PST) (envelope-from adsharma@c62443-a.frmt1.sfba.home.com) Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.9.3/8.9.3) id LAA03390; Fri, 10 Dec 1999 11:43:04 -0800 Date: Fri, 10 Dec 1999 11:43:04 -0800 From: Arun Sharma To: Chuck Robey Cc: freebsd-arch@freebsd.org Subject: Re: Thread scheduling Message-ID: <19991210114304.A3372@sharmas.dhs.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: ; from Chuck Robey on Thu, Dec 09, 1999 at 11:40:40PM -0500 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 09, 1999 at 11:40:40PM -0500, Chuck Robey wrote: > In scheduling multiple threads on a FreeBSD SMP system, is it just > important that if a thread asks for multiple processors, then it can > contend for multiple processors, or is it in any way important that these > multiple instances of execution from the same memory space actually occur > at the same point in time. A thread can't be scheduled on more than one processor simultaneously. Multiple threads in the same process can be. Assuming that this is what you meant... Is it desirable ? Yes. Can it be guaranteed ? Not easily. If you have a SMP machine dedicated to a particular task like web serving, the optimal use of the system would be to run multiple threads in the same address space on multiple processors. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message