LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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
LauroMoura
Member
 
Registered: Feb 2004
Location: Carpina, PE, Brazil
Distribution: Ubuntu 5.10
Posts: 44

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 PM.

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