Interview Questions - UNIX Process Management
Why should I learn to solve UNIX Process Management technical interview questions?
Learn and practise solving UNIX Process Management technical interview questions and answers to enhance your skills for clearing technical interviews, HR interviews, campus interviews, and placement tests.
Where can I get technical UNIX Process Management technical interview questions and answers with explanations?
IndiaBIX provides you with lots of fully solved UNIX Process Management technical interview questions and answers with a short answer description. You can download UNIX Process Management technical interview questions and answers as PDF files or e-books.
How do I answer UNIX Process Management technical interview questions from various companies?
You can answer all kinds of UNIX Process Management technical interview questions by practising the given exercises (short answer type). You can also find the frequently asked UNIX Process Management technical interview questions with answers from various companies, such as TCS, Wipro, Infosys, CTS, IBM, etc.
- the process dispatcher,
- vhand and
- dbflush
This is done by executing the file "/etc/init". Process dispatcher gives birth to the shell. Unix keeps track of all the processes in an internal data structure called the Process Table (listing command is ps -el).
- getpid() -process id
- getppid() -parent process id
- getuid() -user id
- geteuid() -effective user id
main()
{
fork();
printf("Hello World!");
}
Explanation: The fork creates a child that is a duplicate of the parent process. The child begins from the fork(). All the statements after the call to fork() will be executed twice.(once by the parent process and other by child). The statement before fork() is executed only by the parent process.