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. |
What is spooling in OS? |
|
Answer» Spooling simply stands for Simultaneous peripheral operations online. It is referred to as putting data of various I/O JOBS in a buffer. Here, buffer means a special area in memory or hard disk that can be accessible to an I/O device. It is used for mediation between a computer application and a slow peripheral. It is very useful and important because devices ACCESS or acquire data at DIFFERENT rates. This operation also uses disk as a very large buffer and is capable of overlapping I/O operations for one task with processor operations for ANOTHER task. Useful Resource Operating System MCQ Practice Coding InterviewBit BLOG |
|
| 2. |
What do you mean by Belady’s Anomaly? |
|
Answer» In the OPERATING System, process data is loaded in fixed-sized chunks and each chunk is REFERRED to as a page. The processor loads these pages in the fixed-sized chunks of MEMORY called frames. Belady’s Anomaly is a phenomenon in which if we increase the number of frames in memory, then the number of page faults also increases. It is generally experienced when we use FIFO (First in First out) page replacement ALGORITHM. |
|
| 3. |
What is a deadlock in OS? What are the necessary conditions for a deadlock? |
|
Answer» Deadlock is GENERALLY a situation where a set of processes are blocked as each process is holding resources and waits to acquire resources held by another process. In this situation, TWO or more processes simply try to execute simultaneously and wait for each to finish their execution because they are dependent on each other. We can see a hand problem in our system whenever a deadlock occurs in a PROGRAM. It is one of the common problems you can see in multiprocessing.
|
|
| 4. |
What are various sections of the process? |
|
Answer» There are basically four sections in the process as GIVEN below: |
|
| 5. |
What is difference between process and thread? |
||||||||||||||||||||
|
Answer» PROCESS: It is basically a program that is currently under execution by one or more threads. It is a very important part of the modern-day OS.
|
|||||||||||||||||||||
| 6. |
What is difference between Kernel and OS? |
||||||||||||
|
Answer» Kernel: Kernel is a system program that controls all programs running on the computer. The kernel is BASICALLY a bridge between the software and hardware of the system.
|
|||||||||||||
| 7. |
What is a time-sharing system? |
|
Answer» It is a SYSTEM that allows more than one user to access the RESOURCES of a particular system in many locations. In simple words, it performs multiple tasks on a single processor or CPU. As the name suggests, it MEANS to SHARE time into multiple slots in several processes. It also allows different users from different locations to use a particular computer system at the same time therefore it is considered one of the important types of OS. |
|
| 8. |
What is SMP (Symmetric Multiprocessing)? |
|
Answer» SMP is generally referred to as computer architecture in which the processing of programs is DONE by multiple processors that share a COMMON OS and memory. SMP is very much required if you want to TAKE advantage of MULTIPROCESSOR hardware. It simply enables any PROCESSOR to work on any of the tasks no matter where data or resources for that particular task are located in memory. These systems are more reliable than single-processor systems. |
|
| 9. |
Write difference between micro kernel and monolithic kernel? |
||||||||||||
|
Answer» MicroKernel: It is a minimal OS that executes only important functions of OS. It only contains a near-minimum number of features and functions that are required to implement OS.
|
|||||||||||||
| 10. |
What are different types of Kernel? |
|
Answer» There are BASICALLY FIVE types of Kernels as GIVEN below:
|
|
| 11. |
What is Kernel and write its main functions? |
|
Answer» The kernel is basically a computer program usually considered as a CENTRAL component or module of OS. It is responsible for handling, managing, and controlling all operations of computer systems and hardware. Whenever the system starts, the kernel is loaded first and remains in the main MEMORY. It also ACTS as an interface between user applications and hardware. Functions of Kernel:
|
|
| 12. |
What do you mean by Semaphore in OS? Why is it used? |
||||||||||
|
Answer» SEMAPHORE is a signaling mechanism. It only holds one positive integer value. It is simply used to solve the problem or issue of critical sections in the synchronization process by using two atomic operations i.e., wait() and signal(). Types of Semaphore
|
|||||||||||