C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What are various IDs associated with a process?

0 votes
19 views
asked Jan 7, 2014 by sara Guru (24,570 points)

1 Answer

0 votes
Unix identifies each process with a unique integer called ProcessID. The process that executes the request for creation of a process is called the ‘parent process’ whose PID is ‘Parent Process ID’. Every process is associated with a particular user called the ‘owner’ who has privileges over the process. The identification for the user is ‘UserID’. Owner is the user who executes the process. Process also has ‘Effective User ID’ which determines the access privileges for accessing resources like files.

getpid() -process id

getppid() -parent process id

getuid() -user id

geteuid() -effective user id
answered Jan 7, 2014 by rajesh Guru (39,140 points)

Related questions

0 votes
1 answer 24 views
24 views asked Mar 8, 2014 by kelly johnes Advisor (6,330 points)
0 votes
1 answer 21 views
21 views asked Feb 21, 2014 by john Guru (27,140 points)
0 votes
1 answer 105 views
105 views asked Feb 20, 2014 by sara Guru (24,570 points)
0 votes
1 answer 39 views
39 views asked Jan 7, 2014 by sara Guru (24,570 points)
0 votes
1 answer 32 views
...