Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 1998 16:17:01 -0500
From:      Jonathan Lemon <jlemon@americantv.com>
To:        zhihuizhang <bf20761@binghamton.edu>
Cc:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: curproc
Message-ID:  <19980910161701.54888@right.PCS>
In-Reply-To: <Pine.SOL.L3.93.980910151814.9274A-100000@bingsun1>; from zhihuizhang on Sep 09, 1998 at 03:21:27PM -0400
References:  <Pine.SOL.L3.93.980910151814.9274A-100000@bingsun1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 09, 1998 at 03:21:27PM -0400, zhihuizhang wrote:
> 
> curproc refers to the proc structure of the current running process.  When
> can the value of curproc be NULL?  I see many !curproc in the source code.
> There must be a running process at any time.
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not true; all processes may be idle, and the cpu is executing the
idle loop.  If an interrupt occurs, then there is no process context.
--
Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980910161701.54888>