Re: RasterMan on linux and threads

Borek Lupomesky (Borek.Lupomesky@ujep.cz)
Fri, 17 Dec 1999 12:14:40 +0100 (CET)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 17 Dec 1999, Sean Hunter wrote:

> Moving a thread to a different processor is almost always a loss in
> the real world (ie except for very long-lived threads with one thread
> per proc on an otherwise idle box), because it means that not only do
> you have the cost of migrating the process to the other processor, but
> you lose cache-affinity (you need to save and restore as much context
> as seperate processes whereas if they share a processor, all the
> ...

Well, OK, but this is quite a fundamental issue. I'm likely not getting
you very well -- do you mean, that when I run two threads process, both of
the threads will be run on same CPU (on MP, that is)? In other words,
threading doesn't take advantage of MP machines?

Bye Borek

- --

=====================================================================
BOREK LUPOMESKY, network administrator University of J. E. Purkyne
Ceske mladeze 8
WWW: http://www.ujep.cz/~lupomesk/ Usti nad Labem, 40096
IRCnet: Borek @ #usti The Czech Republic
PGP keyid: B6A06AEB ICQ: 10139578 tel: +420-602-376368
==========[ MIME/ISO-8859-2 & PGP encrypted mail welcome ]===========

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4WhskA6dWI7agausRAgeFAKDKTCOUou4spF62sfq4ohmI0izqwwCfb/Dz
iQN8Wa3x9siiSXNTv1ITRls=
=uynk
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/