How can I change the priority process permanently. When I an opening the application again, it has its own new pid(Process ID) and is set back to normal priority of 0 niceness, so how can I change the priority permanently other than starting everytime with the command?
120644
I had question to ask, and is if there is a way to set steam games (more specifically the games themselves, that shows up as launchers or releases; example: payday2_release) in high priority permanently, or at least to set it on high priority every time i launch the game without having to manually open the system monitor.
83633
According to the some resources I have read, the process with low nice value has more priority. Because it has more priority, CPU allocates more time for that process.  However, it sounds a little bit weird because priority value of a process is calculated by summing nice value with 20.   PR = NI + 20. This can be seen easily with the command top  According to this formula, the processes with higher nice values have higher priorities, but some resources says that the process with low nice value has more priority.  Which one is true ?
65688
In a bash script sometimes you need the user to wait some seconds for a background process to finish.  I usually use for example:  sleep 10   How can I add a kind of progressbar to the script, so the user knows how long to wait?  I installed the command bar but I don't understand the manual.
3475
How can I add a notification of some sort (like playing a .wav file or creating a pop-up on the status bar) when a process finishes. For example, I am compiling a program that takes a couple of hours to finish. I would like to hear/see some sort of message when it completes compiling. Is there a tool for doing this (like tying an alarm program to the pid of a process) or something like that?
117286
I have a process that I need to run at startup. It is something that needs to stay running the entire time that the machine is on. As of now I am just typing the following into bash everything I start my server.  command -f argument &amp; disown   I know that I need to make an init script, but I had no idea how. After some research, it seems Ubuntu uses systemd (some references said Upstart, they aren't the same right?) as its init system. But all the guides I found online tell me to place my executable in /etc/init or /etc/init.d. Init is supposed to be a completely different init system.  Can someone please point me in the right direction? A sample systemd script or even an online guide would be a great help.
84932
After opening a pipe to a process with popen, is there a way to kill the process that has been started? (Using pclose is not what I want because that will wait for the process to finish, but I need to kill it.)
59702
Is there a way to monitor processes starting in the system before they start?  Example: On programs like ZoneAlarm or Antivirus programs, when you run a program it asks you if you allow running this program or not before it runs...
37677
I am running Ubuntu 10.04 and I use upstart for daemon management.  My enterprise application is run as a daemon and must be run as root because of various privileges.  E.g.:  sudo start my-application-long-ID sudo stop my-application-long-ID etc   I would like to introduce an alias to abbreviate these commands as something like:  alias startapp='sudo start my-application-long-ID'   and run it as startapp and that works but I would prefer to not have sudo in the alias.  alias startapp='start my-application-long-ID'   does not when run using sudo startapp, returning sudo: startapp: command not found.  However, when I added the alias:  alias sudo='sudo '  sudo startapp now works but I am still curious why sudo ignores aliases.
53899
I accidentally "stopped" my telnet process.  Now I can neither "switch back" into it, nor can I kill it (it won't respond to kill 92929, where 92929 is the processid.)  So, my question is, if you have a stopped process on linux command line, how do you switch back into it, or kill it, without having to resort to kill -9?
50135
I am trying to test out the renice command on my Mac, it seems to be having no effect. This is how I'm testing it: I have a dual core CPU with hyper threading, so I run 6 instances of node -e 'while(1){}' which, combined, max out my CPU. (Alternatively, run while true; do echo running &gt; /dev/null ; done if you don't have node.) I then get a PID of one of the node processes, either by the activity monitor application or pgrep, and then run sudo renice -n 19 -p $PID. By looking at the activity monitor application or htop, the CPU usage of all of the node processes are still equivalent:  My understanding was that the process that I reniced would have a low priority, and so would not use a significant amount of CPU time when there are other processes using it. Am I misunderstanding something about renice? Or is this a bug in macOS?
106054
So, when I used the priority drivers, the suspend worked normal. But the official drivers works better, so I installed the official driver. Then suspend won't work.  Should I change any text/documants to make it work? Any solution will be aprreciated, thanks you all!
26524
When selecting an application from the Windows 8 Start screen, if I already have that application running the default behavior is to set the focus to the most recently opened window.  Is it possible to change this behavior so it will always open a new instance of the application without having to right-click and select "Open new window"?
77364
I have a program that continually polls the database for change in value of some field. It runs in the background and currently uses a while(true) and a sleep() method to set the interval. I am wondering if this is a good practice? And, what could be a more efficient way to implement this? The program is meant to run at all times.  Consequently, the only way to stop the program is by issuing a kill on the process ID. The program could be in the middle of a JDBC call. How could I go about terminating it more gracefully? I understand that the best option would be to devise some kind of exit strategy by using a flag that will be periodically checked by the thread. But, I am unable to think of a way/condition of changing the value of this flag. Any ideas?
56755
In the bash terminal I can hit Control+Z to suspend any running process... then I can type fg to resume the process.  Is it possible to suspend a process if I only have it's PID? And if so, what command should I use?  I'm looking for something like:  suspend-process $PID_OF_PROCESS   and then to resume it with  resume-process $PID_OF_PROCESS
36194
The process is not stuck because the terminal shows "progress", it keeps trying to remove files that it can't find, the messages read something like: /..../file x: Warning: Source ID XXXXXX was not found when attempting to remove it  The reason I am reinstalling is because my installation was messed up when I installed ubuntu-touch and the system wouldn't reboot.   I was able to fire up a live USB through grub and start the installation process, I figured it would be possible to simply reinstall but it seems to be taking forever. Is this normal behavior? Should I stop it and simply go with a fresh install instead?  Thanks!
5306
Is there any way to find out what process created a given icon in the system tray? A new icon has appeared that I don't recognize and I would like to find out what process spawned it.
66251
Why do PIDS under Linux (generally) increment by 4? The only exception I can think of is startup processes run by systemd, which increment by 1 when they are related or 2 otherwise.  How was the number 4 chosen as the default, and is it changeable?