InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Explain A Zombie? |
|
Answer» 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). 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). |
|
| 2. |
What Happens When We Execute A Unix Command? |
|
Answer» 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 the result and after this the child process will DIE. 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 the result and after this the child process will die. |
|
| 3. |
What Is An Advantage Of Executing A Process In Background? |
|
Answer» There are two main advantage :
There are two main advantage : |
|
| 4. |
How Do You Execute One Program From Within Another? |
|
Answer» By calling system call FORK() to CREATE child PROCESS which HANDLES the other. By calling system call fork() to create child process which handles the other. |
|
| 5. |
What Is Ipc? What Are The Various Schemes Available? |
|
Answer» Inter Process COMMUNICATION. IPC is used to PASS information between two or more processes.Schemes are pipes, shared memory & semaphore. Below are the different IPC methods: Inter Process Communication. IPC is used to pass information between two or more processes.Schemes are pipes, shared memory & semaphore. Below are the different IPC methods: |
|
| 6. |
Describe The Initial Process Sequence While The System Boots Up? |
| Answer» | |
| 7. |
What Are The System Calls Used For Process Management: |
|
Answer» The system calls for PROCESS MANAGEMENT are :
and many more ................ The system calls for process management are : and many more ................ |
|
| 8. |
How To Write The Program On Full-duplex Communication On Bidirectional(e.g Using Two Pipes)? |
|
Answer» #include<stdio.h> #include<stdio.h> |
|
| 9. |
What Is Semaphone? |
|
Answer» a semaphor is nothing but a term used in unix for a variable which acts as a counter.for instance there may be times when two processes try to ACCESS the same file simultaneously.in this EVENT we must control the access of the when the other process is accessing this is done by ASSIGNING value to a semaphore.the value of the semaphore is initialized by the 1ST process when the file is in access by it.when the 2nd process try to access the file it checks the value of the semaphore and if it finds the value as initialized it does not access the file. a semaphor is nothing but a term used in unix for a variable which acts as a counter.for instance there may be times when two processes try to access the same file simultaneously.in this event we must control the access of the when the other process is accessing this is done by assigning value to a semaphore.the value of the semaphore is initialized by the 1st process when the file is in access by it.when the 2nd process try to access the file it checks the value of the semaphore and if it finds the value as initialized it does not access the file. |
|
| 11. |
What Is The Very First Process Created By Kernel? |
|
Answer» The FIRST PROCESS in UNIX is INIT. The first process in Unix is INIT. |
|
| 12. |
Explain Linking Across Directories? |
|
Answer» It's POSSIBLE through both SYMBOLIC and hard LINKS. However, hard links are only possible if both SOURCE and DESTINATION belong to the same volume. It's possible through both symbolic and hard links. However, hard links are only possible if both source and destination belong to the same volume. |
|
| 13. |
What Is Fork()? |
|
Answer» Fork system call is used to create a new PROCESS. Fork is called onces and returns twice.It will return 0 to the newly CREATED process (child process) and process id of child to the calling process(parent process). The child process gets copy of PARENTS data, STACK and heap segement.The code segement is common for both.Both the processes will resume execution from the command next to fork.Scheduler DECIDE which process to run first. Fork system call is used to create a new process. Fork is called onces and returns twice.It will return 0 to the newly created process (child process) and process id of child to the calling process(parent process). The child process gets copy of parents data, stack and heap segement.The code segement is common for both.Both the processes will resume execution from the command next to fork.Scheduler decide which process to run first. |
|
| 14. |
Max Relax-able Permission Value With Out Giving Write Permission To Others? |
|
Answer» chmod 755 <filename> |
|
| 15. |
What Is I-node Numbers? |
|
Answer» File is identified by the I-node number in linux.Kernel uses inode number to ACCESS the file. It is UNIQUE for the perticular filesystem. Inode contains all the INFORMATION about the file like , file size, access permissions, TIME stamp , uid , gid , pointers to data BLOCKS..etc. File is identified by the I-node number in linux.Kernel uses inode number to access the file. It is unique for the perticular filesystem. Inode contains all the information about the file like , file size, access permissions, time stamp , uid , gid , pointers to data blocks..etc. |
|
| 16. |
What Is The Condition Required For Dead Lock In Unix System? |
|
Answer» deadlock occurs because of :
deadlock occurs because of : |
|
| 17. |
Tell Me Set-user-id Is Related To (in Unix)? |
|
Answer» setuid short for set user ID upon execution is Unix access rights flag that allow users to run an executable with the permissions of the executable's owner. This is often used to allow users on a COMPUTER system to run programs with temporarily ELEVATED privileges in order to perform a SPECIFIC task. While the assumed user id privileges provided are not always elevated, at a minimum that is specific. setuid and setgid are needed for tasks that require higher privileges than those which a common user has, such as changing his or her login password. Some of the tasks that require elevated privileges MAY not immediately be OBVIOUS, though - such as the ping command, which must send and listen for control packets on a network interface. setuid short for set user ID upon execution is Unix access rights flag that allow users to run an executable with the permissions of the executable's owner. This is often used to allow users on a computer system to run programs with temporarily elevated privileges in order to perform a specific task. While the assumed user id privileges provided are not always elevated, at a minimum that is specific. setuid and setgid are needed for tasks that require higher privileges than those which a common user has, such as changing his or her login password. Some of the tasks that require elevated privileges may not immediately be obvious, though - such as the ping command, which must send and listen for control packets on a network interface. |
|
| 18. |
Explain The Initial Process Sequence While The System Boots Up? |
|
Answer» While booting, special process called the 'swapper' or 'scheduler' is created by the Process-ID 0. The swapper manages memory allocation for processes and influences CPU allocation. The swapper in TURN creates 3 CHILDREN: the process DISPATCHER, vhand, etc... While booting, special process called the 'swapper' or 'scheduler' is created by the Process-ID 0. The swapper manages memory allocation for processes and influences CPU allocation. The swapper in turn creates 3 children: the process dispatcher, vhand, etc... |
|
| 19. |
What Are Various Ids Associated With A Process? |
| Answer» | |
| 20. |
Explain Fork() System Call? |
|
Answer» Fork() is a system call USED for creating child processes of a parent PROCESS.it returns the process id of the created child process.after that pid(process id ) is checked if it is negative,it means no child process is created,pid==0 IMPLIES the id of the NEWLY created process and pid>0 is the id of child process given to the parent process.the statements following fork system call are executed by both the parent and child process.and one more thing,the parent and child process have the exact copy of address space but it exist SEPARATELY for the two processes. Fork() is a system call used for creating child processes of a parent process.it returns the process id of the created child process.after that pid(process id ) is checked if it is negative,it means no child process is created,pid==0 implies the id of the newly created process and pid>0 is the id of child process given to the parent process.the statements following fork system call are executed by both the parent and child process.and one more thing,the parent and child process have the exact copy of address space but it exist separately for the two processes. |
|
| 21. |
Predict The Output Of The Following Program Code? main() { fork(); printf("hello World!"); } |
|
Answer» Output : PRINTS HELLO world Hello world. All the statements after the CALL to FORK() will be executed TWICE Output : prints Hello world Hello world. All the statements after the call to fork() will be executed twice |
|
| 22. |
What Are The System Calls Used For Process Management? |
|
Answer» This should not ALLOW to INCREASE PROCESS PRIORITY. This should not allow to increase process priority. |
|
| 23. |
How To Get Or Set An Environment Variable From A Program? |
Answer»
|
|