Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2008 13:33:20 -0700
From:      "Murty, Ravi" <ravi.murty@intel.com>
To:        <freebsd-hackers@freebsd.org>
Subject:   SW_PREEMPT and cpu runq
Message-ID:  <AEBCFC23C0E40949B10BA2C224FC61B0072C2A7A@orsmsx416.amr.corp.intel.com>

next in thread | raw e-mail | index | archive | help
Hi,

=20

When a thread is being switched out and it is being preempted (e.g. time
quantum expires), why does sched_switch hold it on the current cpu? i.e.
why does the code see that it was preempted and put it back on the same
queue?

In other cases it looks to see if it can be migrated and the thread goes
back some place else. If a thread is being kicked out and there is a
perfectly idle CPU some where on the system, wouldn't it make sense to
migrate the thread?

=20

Thanks
Ravi

=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AEBCFC23C0E40949B10BA2C224FC61B0072C2A7A>