Mail Archives: djgpp/2001/07/25/06:42:22
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 -