LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2006, 02:36 AM   #1
arunj
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Rep: Reputation: 0
POSIX threads policy and priority


Hi!

I am using posix threads in my application. I am explicitly setting the priorities and the scheduling policy. POSIX threads support 3 types of scheduling - FIFO, RR and OTHER. My second thread needs most of the CPU cycles. Can anybody please clarify what the scenario will be if I use FIFO or RR for my threads but assign different priorities to them? How can I give my second thread the greater part of the CPU cycles?

Thanks and regards,

Arun
 
Old 06-13-2006, 07:05 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Doesn't this fall under thread niceness, not scheduling protocol? I do not know what syscall controls it, but it should be decently trivial to look up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX threads - pthread_cond_timedwait iklinux Programming 5 09-26-2005 11:33 AM
About POSIX threads Ephracis Programming 1 12-03-2004 07:33 AM
Signal Handling in Threads[POSIX] anoop_cv Programming 1 11-02-2004 03:00 AM
enable pthreads? (posix threads) cpluspaul Slackware 5 06-29-2004 06:56 AM
I have a problem with POSIX Threads. AndreasA Programming 2 08-11-2003 03:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration