This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Slow pthread_create() under high load
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: Slow pthread_create() under high load
- From: David Wragg <dpw at doc dot ic dot ac dot uk>
- Date: 26 Mar 2000 17:36:18 +0000
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu, linux-kernel at vger dot rutgers dot edu
- References: <Pine.LNX.4.10.10003251458520.27140-100000@ashi.FootPrints.net>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Kaz Kylheku <kaz@ashi.footprints.net> writes:
> Even if you make it a high priority thread, it does not start that
> way; it becomes high priority after it executes the code which
> performs the adjustment.
This isn't necessarily so. sched_setscheduler() takes a pid parameter,
so the parent thread and the child thread can both perform the
adjustment, ensuring that on return from pthread_create() the new
thread has the appropriate priority.
David Wragg