Re: [Linux-ia64] Re: web page on O(1) scheduler

Arjan van de Ven (arjanv@redhat.com)
21 May 2003 15:12:12 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-19378-1053523602-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2003-05-21 at 12:40, Duraid Madina wrote:
> Dear Arjan,
>=20
>=20
> ///////
> // O
> // > This is a graduate
> / \__ ~ student, laboratory
> || ///// assistant, automotive
> (\ \) (~) // o <--- engineer or other
> ( \ \ / / // > unfortunate soul
> ( \ \/ / ____________/ \__O attempting to get
> ( \__/ / ___ ______\// performance out of a
> / | /@ ( / / ______)/ machine running Linux
> ( |// \ \ / / (_) by writing a simple
> \ () \ \O/ and correct
> \ | ) ) multithreaded program.
> ) ) / /
> ( |_ / /_
> (____> (____>
>=20
> ^
> |
> |
> |
> |
>=20
> This is you.
>=20
>=20

if you had spent the time you spent on this colorful graphic on reading
SUS or Posix about what sched_yield() means, you would actually have
learned something. sched_yield() means "I'm the least important thing in
the system". It's the wrong thing for cross-cpu spinlocks; futexes are
optimal for that. For letting higher priority tasks run a sleep(0) is
also far more closer to the right behavior than a sched_yield().

--=_courier-19378-1053523602-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA+y3ssxULwo51rQBIRAgyKAJ9n0t2mBSmeUqrzxyzIldiEUJCZAQCfec2z
Y03qbLDK8Y8rOoU7/dV+sLo=
=ugqy
-----END PGP SIGNATURE-----

--=_courier-19378-1053523602-0001-2--