From owner-freebsd-hackers Tue Oct 3 3:41:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 4C53F37B502; Tue, 3 Oct 2000 03:41:12 -0700 (PDT) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id GAA10482; Tue, 3 Oct 2000 06:40:50 -0400 (EDT) Date: Tue, 3 Oct 2000 06:40:50 -0400 (EDT) From: Daniel Eischen To: John Baldwin Cc: Zhiui Zhang , freebsd-hackers@FreeBSD.ORG Subject: RE: process scheduling quantum In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 3 Oct 2000, John Baldwin wrote: > > 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. Uhh, I think he wants a process to be able to willingly give up its remaining quantum. This is called sched_yield(2). -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message