lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 21 Aug 2008 17:04:28 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Michal Hocko <mhocko@...e.cz>
cc:	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: How do I raise the priority of one thread in a multi-threaded
 process?

On Thu, 21 Aug 2008, Michal Hocko wrote:

> On Thursday 21 August 2008 12:58:46 pm Alan Stern wrote:
> > Can anyone tell me how to raise the priority of one thread in a
> > multi-threaded process (using the pthreads library)?  Neither nice(2)
> > nor setpriority(2) is appropriate since they affect the priority of an
> > entire process rather than a single thread.
> 
> Isn't pthread_setschedprio, what you are looking for?

Actually I was looking for pthread_setschedparam().  But it wasn't 
clear at first that I needed to change the policy to SCHED_FIFO and 
that special capabilities were needed.  With those changes it seems to 
work correctly.

Thanks for pointing me in the right direction!

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ