Re: [BUG] scheduler: first timeslice of the exiting thread

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, April 9, 2007 - 4:03 am

On 04/09, Oleg Nesterov wrote:

Perhaps

	void sched_exit(struct task_struct *p)
	{
		task_t *t, *did_fork = p->parent;

		if (!thread_group_leader(p))
			list_for_each_entry(t, p->thread_group)
				if (!t->exit_state) {
					did_fork = t;
					break;
				}

		... give time_slice to did_fork ..
	}

may improve things a little bit, because the rest of time_slice doesn't leak
off the thread group.

However this is not very nice and we have the same problem with CLONE_PARENT.

Oleg.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] scheduler: first timeslice of the exiting thread, Oleg Nesterov, (Mon Apr 9, 4:03 am)
Re: [BUG] scheduler: first timeslice of the exiting thread, Satoru Takeuchi, (Mon Apr 9, 6:19 pm)