[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Schedule in task_queues works ?



On Thu, May 25, 2000 at 11:15:01AM -0400, Saraf, Suman wrote:
> > At other points in time (return from syscall, interrupt, ctx switch
> > etc), the task queue is checked and executed. I think calling
> > schedule, when you're in the task queue, will somehow mark the
> > process ineligible for scheduling.
> >
> Calling schedule will just call the scheduler and maybe some other process
> which is the first in the run queue will get the timeslice.
> You call schedule only when you know that you do not want to use the
> remaining portion of your time slice. Something similar to pthread_yield()
> in the user mode :)

In his example, the process which lost its time slice, never got 
rescheduled - otherwise he would've seen the second printk. 
So I suspect that it went into some weird state where it'd never get
a time slice.

Getting rusty with the linux kernel - spending too much time on BSD :)

	-Arun