From owner-freebsd-hackers Tue Oct 3 0: 1:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.va.home.com (ha1.rdc1.va.home.com [24.2.32.66]) by hub.freebsd.org (Postfix) with ESMTP id 57B8437B502 for ; Tue, 3 Oct 2000 00:01:48 -0700 (PDT) Received: from laptop.baldwin.cx ([24.6.244.187]) by mail.rdc1.va.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001003070147.MWBN26082.mail.rdc1.va.home.com@laptop.baldwin.cx>; Tue, 3 Oct 2000 00:01:47 -0700 Content-Length: 682 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 03 Oct 2000 00:01:51 -0700 (PDT) From: John Baldwin To: Zhiui Zhang Subject: RE: process scheduling quantum Cc: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 02-Oct-00 Zhiui Zhang wrote: > > Suppose a process is scheduled to run, will it run until its quantum ends > unless it calls tsleep() on his own? In other words, is it possible for a > process to give up its quantum earlier without having it to do so > voluntarily? Thanks. If an interrupt occurs and puts a thread on the run queue (which will have higher priority than the currently running proceess) then the current process will be stopped so that the interrupt thread can run. > -Zhihui -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message