what does getpid() function does in linux c program?
it gets the priority of our program
it gets the process id of our program
it gets the thread id of our program
it gets the processor id on which our program is running.
getpid() is used to get the unique process id of our application [or] program. In linux each program that is being run will be given a unique id called as process id.
Back To Top