Date: Thu, 21 Jan 2010 11:19:34 +0100
From: Bernard van Gastel <bvgastel@bitpowder.com>
To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc: freebsd-hackers@freebsd.org
Subject: Re: pthread_{mutex,cond} & fifo/starvation/scheduling policy
Message-ID: <72CE899C-5941-4659-B922-DC65BB0CE67D@bitpowder.com>
In-Reply-To: <86hbqifip8.fsf@ds4.des.no>
References: <71A129DC-68A0-46C3-956D-C8AFF1BA29E1@bitpowder.com> <86hbqifip8.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-1-146649389
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=iso-8859-1
But the descheduling of threads if the mutex is not available is done by =
the library. And especially the order of rescheduling of the threads =
(thats what I'm interested in). Or am I missing something in the =
sys/kern/sched files (btw I don't have the umtx file).
Regards,
Bernard
Op 19 jan 2010, om 12:16 heeft Dag-Erling Sm=F8rgrav het volgende =
geschreven:
> Bernard van Gastel <bvgastel@bitpowder.com> writes:
>> What is the scheduling policy of the different thread libraries?
>=20
> Threads are scheduled by the kernel, not by the library. Look at
> sys/kern/sched_umtx.c and sys/kern/sched_{4bsd,ule}.c.
>=20
> DES
> --=20
> Dag-Erling Sm=F8rgrav - des@des.no
--Apple-Mail-1-146649389--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72CE899C-5941-4659-B922-DC65BB0CE67D>
