Messages in this thread | | | Date | Thu, 17 Jan 2008 09:46:59 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles |
| |
On Wed, 16 Jan 2008, Mathieu Desnoyers wrote: > > Or could we map a per-thread page that would contradict this > "definition" ?
Over my dead body.
It's been done before. Many times. It's horrible, and means that you need to flush the TLB on context switches between threads and cannot share the same hw page tables across CPU's (since now different CPU's run different threads).
It generally makes threads pointless. You might as well implement them as processes with shared mmap.
Linus
| |