setting thread priorities


 
Thread Tools Search this Thread
Top Forums Programming setting thread priorities
# 1  
Old 01-17-2006
setting thread priorities

hi all:
->could someone tell how 2 set thread priorities in a prg
-> also how to create multiple dynamic threads..
help me....
# 2  
Old 01-17-2006
Thread programming basics (threads are dynamic by nature). See man pthread_cancel.

Basic thread operations:

http://www.llnl.gov/computing/tutorials/pthreads/

pthread_setschedparam() is used to change priority. It has an assoicated call,
pthread_getschedparam() . Try the man page for each for examples.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Pthread attr setting doesn't work before thread create?

Hello everyone, I created a test program for pthread priority set. Here's the code, very simple, 60 lines only. I've tried this prog on my Fedora 13(on vbox), and on my 6410 arm linux 2.6.36. Both the same result. Both environments are using root privileges. Can any body tells me why the... (15 Replies)
Discussion started by: ss1969
15 Replies

2. Shell Programming and Scripting

mailx to set priorities

Hi, can we set priority to mails which I have sent using mailx? Is there any options in mailx for that? I am receiving mails on Microsoft Outlook (4 Replies)
Discussion started by: Deei
4 Replies

3. Virtualization and Cloud Computing

ionice command to set i/o priorities for domUs

Hi, I have xen on a debian lenny with more then 20 VM. The supermicro server has a raid10 with a good performance, but I have IO issues when one VM is making backup, it affects the performance of the other VMs. I've setup cpus, vcpus, sched-credit between dom0 and domUs as doc recommended, but... (0 Replies)
Discussion started by: iga3725
0 Replies

4. AIX

crontab priorities

I have a user that wants to run a backup of an oracle database via a file copy. They shut down the database once a week, and do a full copy. She wrote a script to do this for her, and it works, but when she runs it from cron, it takes twice as long. I took a look, and found a way to get it to... (5 Replies)
Discussion started by: TechFly
5 Replies
Login or Register to Ask a Question