Sender: nate AT cartsys DOT com Message-ID: <37164838.CD4A76F0@cartsys.com> Date: Thu, 15 Apr 1999 13:12:40 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: __dpmi_yield References: <37163891 DOT 2251F69B AT lycosmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Adam Schrotenboer wrote: > > I know that __dpmi_yield is non portable, but is there an equivalent on > Linux systems???? > > Maybe DJGPP should include that function, probably just as a macro that > calls __dpmi_yield, anyway, just a suggestion. I'm much more interested > in the above q. See sched_yield. We could implement it, but I suspect that most who use it also use the rest of the sched_* POSIX scheduler control functions, which are probably not reasonable for DJGPP to implement. On some systems, but I think not Linux, sleep(0) yields the current timeslice. But in general, if you need it, you're probably polling for some event, which is probably a bad idea. What is it you're trying to do? -- Nate Eldredge nate AT cartsys DOT com