[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kernelnewbies
Subject:    Re: needs_resched in task_struct
From:       Robert Love <rml () tech9 ! net>
Date:       2003-04-30 12:51:05
[Download RAW message or body]

On Wed, 2003-04-30 at 05:49, Bryan K. wrote:

> I was wandering why the variable need_resched is a per task one? Is it not a 
> good idea to be a volatile per-cpu variable?

Strictly performance.  Accessing current's task_struct is very very
fast.  It used to be a global variable around 2.0.

	Robert Love

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic