Operating System Interview Questions
Operating System Interview Questions
6) What is kernel?
Kernel is the core and most important part of a computer operating system which
provides basic services for all parts of the OS.
1
Dr. K SIVA RAMA PRASAD
10) What is the difference between micro kernel and macro kernel?
Micro kernel: micro kernel is the kernel which runs minimal performance affecting
services for operating system. In micro kernel operating system all other operations are
performed by processor.
Macro Kernel: Macro Kernel is a combination of micro and monolithic kernel.
11) What is the concept of reentrancy?
It is a very useful memory saving technique that is used for multi-programmed time
sharing systems. It provides functionality that multiple users can share a single copy of
program during the same period.
It has two key aspects:
o The program code cannot modify itself.
o The local data for each user process must be stored separately.
12) What is the difference between process and program?
A program while running or executing is known as a process.
2
Dr. K SIVA RAMA PRASAD
18) What are the four necessary and sufficient conditions behind the deadlock?
These are the 4 conditions:
1) Mutual Exclusion Condition: It specifies that the resources involved are non-
sharable.
2) Hold and Wait Condition: It specifies that there must be a process that is holding a
resource already allocated to it while waiting for additional resource that are currently
being held by other processes.
3) No-Preemptive Condition: Resources cannot be taken away while they are being
used by processes.
4) Circular Wait Condition: It is an explanation of the second condition. It specifies that
the processes in the system form a circular list or a chain where each process in the
chain is waiting for a resource held by next process in the chain.
3
Dr. K SIVA RAMA PRASAD
26) What is the difference between logical address space and physical address
space?
Logical address space specifies the address that is generated by CPU. On the other hand
physical address space specifies the address that is seen by the memory unit.
4
Dr. K SIVA RAMA PRASAD
30) What is the difference between internal commands and external commands?
Internal commands are the built-in part of the operating system while external
commands are the separate file programs that are stored in a separate folder or
directory.
5
Dr. K SIVA RAMA PRASAD
37) What is the difference between logical and physical address space?
Logical address specifies the address which is generated by the CPU whereas physical
address specifies to the address which is seen by the memory unit.
After fragmentation
41) Do the Batch Operating System interact with Computer for processing the
needs of jobs or processes required?
No, this is not that kind of Operating Systems which tries to interact with the computer.
But, this job is taken up by the Operator present in the Batch Operating Systems.
1. The time which the Operating System is at rest is very small or also known as Idle
Time for the Operating System is very small.
2. Very big tasks can also be managed very easily with the help of Batch Operating
Systems
3. Many users can use this Batch Operating Systems.
4. It is incredibly challenging to estimate or determine how long it will take to finish
any task. The batch system processors are aware of how long a work will take to
complete when it is in line.
7
Dr. K SIVA RAMA PRASAD
49) What are the functions which are present in the Process Control and File
Management System Call?
The Functions present in Process Control System Calls are:
1. Create
2. Allocate
3. Abort
4. End
5. Terminate
6. Free Memory
50) What are the functions which are present in the File Management System Call?
The Functions present in File Management System Calls are:
1. Create
2. Open
3. Read
4. Close
5. Delete
8
Dr. K SIVA RAMA PRASAD
55) What are the Files used in the Process Control Block?
The Files used in Process Control Block are:
1. Central Processing Unit (CPU) Scheduling Information
2. Memory Management Information
3. Accounting Information
4. Input Output Status Information
9
Dr. K SIVA RAMA PRASAD
Thread Process
Threads are executed within the same Processes are executed in the
process different memory spaces
10
Dr. K SIVA RAMA PRASAD
11
Dr. K SIVA RAMA PRASAD
12
Dr. K SIVA RAMA PRASAD
Dispatcher is the one who moves the Scheduler is the one which selects a
process to the desired state process which is feasible to be
executed at this point of time.
The time taken by Dispatcher is known as The Time taken by the Scheduler is not
Dispatch Latency counted basically
13
Dr. K SIVA RAMA PRASAD
The section of a program known as the Critical Section attempts to access shared
resources.
The operating system has trouble authorizing and preventing processes from entering
the crucial part because more than one process cannot operate in the critical area at
once.
78) How can we detect and recover the Deadlock occurred in Operating System?
First, what we need to do is to allow the process to enter the deadlock state. So, it is the
time of recovery.
We can recover the process from deadlock state by terminating or aborting all
deadlocked processes one at a time.
Process Pre Emption is also another technique used for Deadlocked Process Recovery.
14
Dr. K SIVA RAMA PRASAD
require a technique known as address translation carried out by the page table in order
to translate this logical address into a physical address.
1. One Input or Output request may be fulfilled by the disk controller at a time,
even if several Input or Output requests could come in from other processes.
Other Input or Output requests must thus be scheduled and made to wait in the
waiting queue.
2. The movement of the disk arm might increase if two or more requests are placed
far apart from one another.
3. Since hard disks are among the slower components of the computer system, they
must be accessible quickly.
88) What are the Disk Scheduling Algorithms used in Operating Systems?
The Disk Scheduling Algorithms used in Operating Systems are:
1. First Come First Serve
2. Shortest Seek Time First
3. LOOK
4. SCAN
5. C SCAN
6. C LOOK
16