Date: Thu, 17 Aug 2000 10:05:18 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: hackers@freebsd.org Cc: tcrimi+@andrew.cmu.edu Subject: Re: Critical (or equivalent) section in Userland? Message-ID: <200008171705.KAA08322@vashon.polstra.com> In-Reply-To: <Utb0d7S00UwAMI3bU2@andrew.cmu.edu> References: <399BA212.A84240AE@tdx.co.uk> <Utb0d7S00UwAMI3bU2@andrew.cmu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Utb0d7S00UwAMI3bU2@andrew.cmu.edu>, Thomas Valentino Crimi <tcrimi+@andrew.cmu.edu> wrote: > > going to be around 6 or 7 calls to rename() but I must ensure they _all_ > > happen before any other process is allowed to run again... > > Take a look at rtprio(2), giving yourself a realtime priority will > guarantee you the CPU until you explicitly release it (or another higher > priority realtime process comes along). It's generally a bad idea to use priorities to try to guarantee exclusive access. Think SMP. If there are enough CPUs in the system, all runnable processes will be running no matter what their priorities are. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa 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?200008171705.KAA08322>