Process Model and IPC Interview questions

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

What happens when you execute a command?

When you enter the 'ls' command to look at the contents of your current working directory, UNIX does a series of things to create an environment for ls and run it: The shell has UNIX perform a fork. This creates a new process that the shell will use to run the ls program. The shell has UNIX perform an exec of the ls program. This replaces the shell program and data with the program and data for ls and then starts running that new program. The ls program is loaded into the new process context, replacing the text and data of the shell. The ls program performs its task, listing the contents of the current directory.

Next 5 interview question(s)

What happens when you execute a program?
What are the process states in Unix?
What is a zombie?
How can a parent and child process communicate?
How can you get/set an environment variable from a program?