lkml.org 
[lkml]   [1997]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: your mail
Date
> >It's not threaded at all.  Is there any way to have it yield if it doesn't
> >use kernel_threads? I really don't know much about in-kernel scheduling.
> Call schedule() any time you want to yield.

Myth warning. If your process happens to running real time this doesnt come
out too well. I guess you might argue the behaviour (not yielding) is right
but you might get some suprises, especially on an SMP box where the following
is not safe

while(!irq_occured)
schedule();

Take a look at stuff like sched_yield()

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.343 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site