Tiny Core Base > Micro Core

TCL and Priority

(1/2) > >>

glouw:
Hello!

How do I set the priority of a certain process to a higher state? I have a Java program running on a TCL kiosk machine at work that is collecting data from several data acquisition devices. Is it possible to get the linux kernel to dedicate all CPU resources to my program to get it running in real time? I know you can do this in Windows with the task manager by right clicking a process, selecting 'set priority' and then selecting 'real time'.

I read somewhere about 'niceness' in Linux; but I don't know if TCL supports 'niceness''.

Any help is appreciated.

bmarkus:

--- Quote from: glouw on March 05, 2013, 10:49:53 PM ---Is it possible to get the linux kernel to dedicate all CPU resources to my program to get it running in real time? I

--- End quote ---

It is not a realtime system. Also, there are no way to dedicate ALL CPU resources to your program even in a realtime system. However you can increase priority:

http://www.nixtutor.com/linux/changing-priority-on-linux-processes/

or

http://www.ibm.com/developerworks/linux/library/l-lpic1-v3-103-6/index.html

tinypoodle:
You could find an unofficial user contributed rt kernel under /contrib in repo.

You might want to have a look at htop which while monitoring the system and giving real time visual feedback also allows for interactive renicing.

bmarkus:
If application need all CPU resources to work properly it has nothing to do heaving realtime kernel or not, it is a generic resource issue or most probably an issue with the application. Before changing anything analyse current situation. htop is a nice tool to do that.

glouw:
Very helpful.

Thankyou!

Navigation

[0] Message Index

[#] Next page

Go to full version