Process Model and IPC interview questions


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

How can you get/set an environment variable from a program?

Getting the value of an environment variable is done by using `getenv()'.

Setting the value of an environment variable is done by using `putenv()'.




Next 5 interview question(s)

1
How do you execute one program from within another?
2
How would you kill a process?
3
List the system calls used for process management?
4
Predict the output of the following program code?
5
What are the process states in Unix?


Comments