Top Unix IPC Interview Questions :: ALLInterview.com http://www.allinterview.com Top Unix IPC Interview Questions en-us Explain fork() system call? http://www.allinterview.com/showanswers/13942.html fork() sytem call create child process to handle multi processing activities, It inherites following fields from parent. environment variables, Filedescriptor, data part I will think and write ... What are the process states in Unix? http://www.allinterview.com/showanswers/13948.html 1.running 2.stop 3. zombie What are the system calls used for process management: http://www.allinterview.com/showanswers/14270.html The system calles for process management are fork() which will create a process wait() will wait for exit status of all child processes. What is IPC? What are the various schemes available? http://www.allinterview.com/showanswers/13953.html Inter Process Communication. IPC is used to pass information between two or more processes. Schemes are pipes, shared memory & semaphore. How can a parent and child process communicate? http://www.allinterview.com/showanswers/13946.html Parent and child processes can communicate with unnamed pipe, but the pipe should be created before creating the child(i.e. forking). After forking the process, child process inherits all properties of parent, hence pipe also. This pipe can ce us what is the process id for kernel process? http://www.allinterview.com/showanswers/107844.html iwant to who command botting time excuted plese tell me. thenk you. What is a zombie? http://www.allinterview.com/showanswers/13947.html A system that has been taken over using Remote Control Software. Zombies are often used to send spam or to attack remote servers with an overwhelming amount of traffic (a Distributed Denial of Service Attack). What is a Daemon? http://www.allinterview.com/showanswers/13949.html Daemon stands for Disk and Execution Monitor. A daemon is a long-running background process that answers requests for services. What is semaphone? http://www.allinterview.com/showanswers/105279.html Semaphore is one method used for interprocess communication. Predict the output of the following program code main() { fork(); http://www.allinterview.com/showanswers/13943.html The output is Hello World!Hello World! What are various IDs associated with a process? http://www.allinterview.com/showanswers/14269.html PID (Process Id) and PPID(Parent Process Id) Describe the initial process sequence while the system boots up? http://www.allinterview.com/showanswers/14268.html Whenever the system boots up, daemons are initialised. The first process that gets initialised is scheduler (PID 0). This in turn initialises init process (PID 1) vhand,bdflush are the other processes that get initialised when the system boots What is an advantage of executing a process in background? http://www.allinterview.com/showanswers/13951.html If a process is running in background then the same process will continue to run on the Unix server without any communication with the front console. the console can be reused. What Happens when you execute a command? http://www.allinterview.com/showanswers/13950.html When command is given then unix os will fork the shell i.e will creat a new process and will execute the command using exec command...something like suppose you gave command "ls" in the shell then... fork(); exec(ls); It will give you How do you execute one program from within another? http://www.allinterview.com/showanswers/13952.html with the help of "exec" version. look for man pages for more help