search
Login

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

0 votes
20 views
asked Guru 24.6k points 29 51 75

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 Guru 39.1k points 10 21 31

Related questions

0 votes
1 answer 26 views
26 views
asked kelly johnes Advisor 6.3k points 5 21 29
0 votes
1 answer 23 views
23 views
asked john Guru 27.1k points 31 47 92
0 votes
1 answer 109 views
109 views
asked sara Guru 24.6k points 29 51 75
0 votes
1 answer 40 views
40 views
asked sara Guru 24.6k points 29 51 75
0 votes
1 answer 35 views
...