Process Model and IPC Interview questions


Total available count: 17
Subject - Operating System
Subsubject - Process Model and IPC

What are various IDs associated with a process?

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.

 




Next 5 interview question(s)

1
Explain fork system call?
2
Predict the output of the following program code?
3
List the system calls used for process management?
4
How can you get/set an environment variable from a program?
5
How can a parent and child process communicate?

Comments