delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/25/06:42:22

Date: Wed, 25 Jul 2001 13:41:02 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Bywalec Tomasz <bywale-t AT zszosw DOT petex DOT com DOT pl>
cc: djgpp AT delorie DOT com
Subject: Re: Newbie's question about __dpmi_yield and Linux...
In-Reply-To: <Pine.LNX.4.21.0107241114500.27954-100000@zszosw.petex.com.pl>
Message-ID: <Pine.SUN.3.91.1010725133907.15699C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 24 Jul 2001, Bywalec Tomasz wrote:

>   Well, I know that it's DJGPP-related mailing list, and so it's main
> purpose is tu discuss about DOS programming related topics, but I need
> help with programming under Linux. Is there a function in Linux's libc
> which "tells" kernel, that current process doesn't need more of it's
> time slice and switches execution to next process (just like
> __dpmi_yield() does in DJGPP) ?

Try `sleep' or `nanosleep'.  The only difference is that you will have to 
decide how much time to sleep, but that's not a difficult decision, 
especially if you happen to know the frequency at which the OS scheduler 
runs.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019