Top "Pid" questions

In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by most operating system kernels (such as that of UNIX, Mac OS X or Microsoft Windows) to (temporarily) uniquely identify a process.

Getting PID of process in Shell Script

I am writing one shell script and I want to get PID of one process with name as "ABCD". What …

linux shell unix pid
Failed to Attach to Process ID Xcode

Anyone has experienced this problem? Yesterday I still can run my app in simulator but now I cannot run my …

xcode build ios-simulator pid
How do I find the process ID (pid) of a process started in java?

If I get a process object in Java through Runtime.getRuntime().exec(...), or ProcessBuilder.start(), I can wait for it …

java process pid
Maximum PID in Linux

I am porting an application from Tru64 to Linux and it uses PID_MAX defined in limits.h. Linux doesn't …

c linux pid
Check if process exists given its pid

Given the pid of a Linux process, I want to check, from a C program, if the process is still …

c linux pid
Must my pidfile be located in /var/run?

I'm asking in both contexts: technically and stylistically. Can my application/daemon keep a pidfile in /opt/my_app/run/? …

linux ubuntu unix pid
Difference between PID and TID

What is the difference between PID and TID? The standard answer would be that PID is for processes while TID …

linux pid
Why does getpid() return pid_t instead of int?

What's the logic behind calls like getpid() returning a value of type pid_t instead of an unsigned int? Or …

c pid type-equivalence
getpid and getppid return two different values

When I run the code below #include <stdio.h> #include <sys/types.h> //int i=0; int …

c fork pid
PID error on mysql.server start?

I've just tried installing MySQL using homebrew (on Mac OS X 10.6), but I've run across an issue at the first …

mysql macos pid homebrew