Re: Scheduler question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 23, 2006 at 21:10:56 -0800, Rajaram Suryanarayanan wrote:
> Thanks for all your replies.
>   But my question was different. I will try to make it more clear.
>   When will the swapping of the active priority array and expired array happen ? 
>    
>   The sleeping processes which have timeslice remaining will not be in the
>   active array, as they are not in RUNNABLE state. Suppose, all the
>   processes currently in the active array have exhausted their timeslices.
>   Will the kernel now swap the arrays or will it wait for the sleeping
>   processes also to be reinserted back in to the array, and exhaust their
>   timeslices and then swap the arrays ?

I think it was clear from at least one of the replies. Anyway...

It CAN'T wait for the sleeping processes. Because they may not be going to
wake up for many days (eg. login on a rarely used console), or, worse, they
may be waiting for some process in the expired array. So it must swap the
arrays immediately.

-- 
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux