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

Re: Scheduler



On Tue, 13 Feb 2001 jk76_in@xxxxxxxxx wrote:

> Hi,
> 	Can any one explain how scheduling is done in linux

	Each proceess was given priority(p_priority) based on user
priority. For every clock cycle, the counter value decremented for the
current running process. When counter reaches to zero swtch() called. To
take care of aging, the prority is computed as
	p->counter = (p->counter/2) + p_nice

	The process having max(p->counter) will be scheduled.

	It is more efficint than BSD implementation

--samba