Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-14-2004, 09:57 AM   #1
Senior Member
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Rep: Reputation: 45
change the priority on the fly

Hi... I need to dynamically change the priority of a process.

For example assume that we have a process that consumes a lot of cpu... I want to send a signal to the process and change the priority to a higher number, without killing it and starting again from start.
Any ideas?
Thx a lot
Old 12-14-2004, 10:19 AM   #2
Registered: Feb 2004
Location: Carpina, PE, Brazil
Distribution: Ubuntu 5.10
Posts: 44

Rep: Reputation: 15
On command line / script
Or on the source:
int setpriority(int wich, int who, int prio)
(Check the man pages)


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change swap space on the fly RajRed Linux - Newbie 2 04-26-2005 04:45 PM
Change process priority ]SK[ Linux - Software 11 02-24-2005 08:00 PM
how can I change the current shell on the fly? Xavius Linux - Newbie 5 04-06-2004 08:00 AM
How do I change a process's priority? TheOneAndOnlySM Linux - General 2 03-12-2004 10:17 PM
cant change any display settings on the fly. this Linux - Newbie 0 12-14-2001 07:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:12 PM.

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