Questions tagged [nice]

nice is a UNIX kernel call and the name of a utility employed to lower or raise a process' CPU priority.

nice is a program found on Unix and Unix-like operating systems such as Linux.

It directly maps to a kernel call of the same name. nice is used to invoke a utility or shell script with a particular priority, thus giving the process more or less CPU time than other processes. A niceness of −20 is the highest priority and 19 or 20 is the lowest priority. The default niceness for processes is inherited from its parent process, usually 0.

Source: Wikipedia

For questions about the Nice programming language, use .

101 questions
0
votes
0 answers

Does Java thread priority affects scheduling of threads in other JVMs (processes) on the same OS

When setting a Java thread to min priority I know it results in more scheduling time for fellow threads within the same JVM. I'd like to know if threads in other JVM processes will get more scheduling time as well? In other words, does thread…
Gili Nachum
  • 5,288
  • 4
  • 31
  • 33
0
votes
1 answer

What does the Ampersand do in a SQL where clause

I'm trying to figure this query out and can't figure out how it relates: Where iInteractionOpenReasonID & 16 = 0 Possible values for iInteractionOpenReasonID should be: 0 Unknown 1 Normal Start 2 Normal End 4 Transfer Start 8 Transfer End 16…
0
votes
2 answers

Direct output of a niced command to a text file

I'm trying to run a python script with the nice level set. nice -n 5 python3 blah.py runs as expected and sends text output to the screen. However, I would like to pipe the output to a text file and run this all in the background so I can go and…
218
  • 1,754
  • 7
  • 27
  • 38
0
votes
1 answer

Torquebox services: niceness?

I'm considering moving over to Torquebox, but I need to set the nice level of one of the external daemons i want to change to a Service to 19. Is there any equivalent way of doing this in Torquebox, so that a service has lower run time priority than…
Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49
0
votes
1 answer

Does PHP proc_nice leave Apache threads at new priority setting?

When executing proc_nice(), is it actually nice'ing Apache's thread? If so, and if the current user (non-super user) can't renice to its original priority is killing the Apache thread appropriate (apache_child_terminate) on an Apache 2.0x…
ChronoFish
  • 3,589
  • 5
  • 27
  • 38
0
votes
0 answers

Php execute a sequence of external niced linux commands in background

In my php script I generate a sequence of console commands to be executed. The sequence is strict because each next command relies on the result of the previous command. I use ';' delimiter between commands. Under normal circumstances I just exec()…
0
votes
2 answers

Application(hellanzb) is a system hog and nice 19 does nothing

I am both a contributor and user of the nntp nzb leecher called hellanzb for Unix like systems. It is written in python and works quite well. Though when the transmission rate is high and the program is utilizing app's like par and unrar, most…
Recursion
  • 2,915
  • 8
  • 38
  • 51
0
votes
2 answers

Rewrite $_GET to/$1/$2

I have next form:
KorbenDallas
  • 944
  • 9
  • 16
0
votes
2 answers

How to use nice command in python?

How to use nice in python ? I have a simple bash script: nice -n 9 cp /var/tmp/1 /var/tmp/2 What will be python alternative?
Bdfy
  • 23,141
  • 55
  • 131
  • 179
-1
votes
1 answer

nice command in C

I wrote a program that realizes the equivalent of the nice command in linux. How can I modify the program to report the failure to stderr, take over and execute a simple command? #include #include int my_nice(int incr) { …
Nostradamus
  • 172
  • 2
  • 5
-4
votes
1 answer

A program in C language (linux) which does the same thing as the nice -n [number] [process]

I need to write a C program that launches another program with a modified priority, much as as the nice command does. In order to do that, I would like to find the PID of a process given as an argument (how can I do that?) and modify its priority…
1 2 3 4 5 6
7