This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Possible optimization in NPTL ?
- From: Sebastien Decugis <sebastien dot decugis at ext dot bull dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 01 Sep 2004 15:42:53 +0200
- Subject: Possible optimization in NPTL ?
- Organization: Bull S.A.
Hi all,
I've seen that everytime a new thread is created with a defined
scheduling policy, two syscalls are issued (sched_get_priority_min and
sched_get_priority_max). I was wondering if it wouldn't be worth caching
those values... I think those are constants (depending of the policy of
course), so couldn't we have a local copy (in user land) of the array
{policies/range} ?
Any thoughts?
Thanks,
Sebastien.
-------------------------------
Sebastien DECUGIS
"You may fail if you try.
You -will- fail if you don't."