Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What are various IDs associated with a process in unix?

7 like 0 dislike
Hello
What are various IDs associated with a process in unix?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by eagles11 (179,830 points)

1 Answer

1 like 0 dislike
 
Best answer
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 1 year ago by DBA-boss (120,990 points)

Related questions

9 like 0 dislike
1 answer
9 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)
6 like 0 dislike
1 answer
6 like 0 dislike
1 answer
6 like 0 dislike
1 answer