This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Slow pthread_create() under high load


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]