Re: Slow pthread_create() under high load

From: David Wragg (dpw@doc.ic.ac.uk)
Date: Sun Mar 26 2000 - 12:36:18 EST


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

-
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/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:17 EST