Date: Wed, 25 Jul 2001 13:41:02 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Bywalec Tomasz cc: djgpp AT delorie DOT com Subject: Re: Newbie's question about __dpmi_yield and Linux... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.