From: Michal Hocko <mhocko@suse.cz>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: How do I raise the priority of one thread in a multi-threaded process?
Date: Thu, 21 Aug 2008 14:28:27 -0600 [thread overview]
Message-ID: <200808211428.27524.mhocko@suse.cz> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0808211414220.14466-100000@iolanthe.rowland.org>
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?
>
> Thanks,
>
> Alan Stern
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Michal Hocko
L3 team
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
next prev parent reply other threads:[~2008-08-21 20:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 18:58 Alan Stern
2008-08-21 20:28 ` Michal Hocko [this message]
2008-08-21 21:04 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808211428.27524.mhocko@suse.cz \
--to=mhocko@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®