answersLogoWhite

0


Best Answer

Process IDs are useful for backgrounded processes in cases where you need to either bring it into the foreground, send it a signal, or terminate/kill it. The reason for this is it's often not a good idea to identify a process by its program name lest there be multiple instances and you wish to address one of them. Process names are hardly unique, but running process IDs are. Thus when trying to background a process it's a good idea to make note of its PID.

Daemons, on the other hand, don't necessarily require you to track its PID, as they are managed by the system's init system. If a daemon is misbehaving or needs management intervention by you, you can, as root, simply ask init, systemd, or whatever your distribution uses to pause or stop the daemon for a moment. Often when changing a daemon's configuration you use your init system to restart the daemon so it runs on the new config.

Do not that daemons and even some other background processes are only under the control of root, or even more extremely, the kernel in kernel space, and you might not be able to do anything with them.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

To identify process

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are PID numbers useful when you run processes in the background?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why are these numbers useful when you run processes in the background?

When you want to use the kill command, the syntax requires the PID Number.


Why are PID numbers useful when you run processes in the backround?

Process ID numbers are useful for terminating and locating process names without it. It would be almost impossible for the operating system and the user to be able to terminate or control processes that are assigned within the kernel.


What is the command used to check the pid of all the processes current running in Linux environment?

Type top in a terminal to display Linux processes, which includes PID.


Which utility displays the PID numbers of the commands you are running?

You can use the PS (process status) utility to display the PID numbers of running commands.


Who is the parent of the zombie process?

zombie processes are inherited by the 'init' process (PID 1)


How long should an IUD last before having pid?

IUDs do not cause PID. There are no health risks from leaving an IUD in place after its useful life, other than possible pregnancy in the case of a hormonal IUD.


What command sends signals to processes?

In terminal you should use command "kill" for example kill -HUP $pid


Which utility displays the PID numbers of the command you are running?

Open a terminal (short cut is to press Ctrl + Alt + T) and type "top" (without the quotes) to show running processes and PIDs. Or you can type "htop", so have a look at both.


What is a PID and how is it useful when troubleshooting a system?

PID stands for Process Identifier, a uniquely assigned integer that identifies a process in the operating system. In any system, applications use PID to identify the process uniquely. Also, it is used in diagnosing the problems with the process in Multi-Tasking systems.


When multiple programs or processes are running on a Unix machine how do you find out much memory is being used by each program?

to find out the memory of each processes running on our unix/ Linux box type "PS -aux | more" would list u all the processes running with their respective processor id's (pid) and the memory used by the respective programs ... if u are running out of memory what we can do is note down the pid which is taking lot of memory and if u feel the process is not so important for u then use the command "killall"to quit or stop that particular process I am using red-hat Linux, here u can use a top command to c the amount of memory utilized by each running processes. You can use "top" or the native "prstat" in Solaris. In order to see how much memory is used by a process, not including that shared with other processes ( through shared libraries ), you can execute "pmap -x $pid" giving your processes PID.


Can males get PID?

Males can't get PID.Men won't get PID.


Can someone with pid have a baby?

PID CAN CAUSE BIRTH DEFECTS IM SORRY TO ANYONE WHO HAS PID!!!!!PID CAN CAUSE BIRTH DEFECTS IM SORRY TO ANYONE WHO HAS PID!!!!!