From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 14:01:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29D6E1065678 for ; Thu, 19 Jun 2008 14:01:58 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id DA7F78FC12 for ; Thu, 19 Jun 2008 14:01:57 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K9Ki5-00086e-0N for freebsd-questions@freebsd.org; Thu, 19 Jun 2008 07:01:57 -0700 Message-ID: <18009680.post@talk.nabble.com> Date: Thu, 19 Jun 2008 07:01:57 -0700 (PDT) From: Alexander Sack To: freebsd-questions@freebsd.org In-Reply-To: <20def4870806190428q2340c58fkfa036cf4ec205c5b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pisymbol@gmail.com References: <20def4870806190428q2340c58fkfa036cf4ec205c5b@mail.gmail.com> Subject: Re: Process management in FreeBSD 7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 14:01:58 -0000 Mr Y wrote: > > Hi All, > > I'm trying to find the equivilents for Linux's schedule() and > set_task_state(TASK_RUNNING). > > Does anybody have a tip? > I would start perhaps in kern/kern_sync.c and mi_switch() which will request that a new process be scheduled (sched_switch in either 4BSD or ULE scheduler's). That should get you pointed in the right direction! :D! -aps -- View this message in context: http://www.nabble.com/Process-management-in-FreeBSD-7-tp18007313p18009680.html Sent from the freebsd-questions mailing list archive at Nabble.com.