Re: pthreads and the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 11 Apr 2006 12:31:40 -0700
"Om Narasimhan" <om.turyx@xxxxxxxxx> wrote:

> I do not know exactly, but it is almost right. In scheduler code I did
> not see anything to differenciate among processes of a thread and
> independent processes. But I can be wrong.

I don't know precisely how the Linux kernel scheduler works, but I'm
pretty sure it uses the information of "this group of processes are in
the same address space" (which means they are threads). Switching to a
thread of the same address space as the current one has clearly not the
same cost as switching to a thread in a different address space
(because of the involved TLB flushing stuff).

Sincerly,

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@xxxxxxxx 
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@xxxxxxxxx
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux