Operating system interview questions

1. What is the main purpose of an operating system ?
Three main functions:
a. Manage the computer’s resources, such as the central processing unit, memory, disk drives, and printers.
b. Establish a user interface.
c. Execute and provide services for applications software.

2) What is demand paging ?
In computer operating systems, demand paging is a method of virtual memory management. In a system that uses demand paging, the operating system copies a disk page into physical memory only if an attempt is made to access it and that page is not already in memory. In virtual memory systems, demand paging is a type of swapping in which pages of data are not copied from disk to RAM until they are needed.

3. When does thrashing occurs ?
In computer science, thrashing occurs when a computer’s virtual memory resources are overused, leading to a constant state of paging and page faults, inhibiting most application-level processing. This causes the performance of the computer to degrade or collapse.

4. What is called spooling ?
In computing, spooling is a specialized form of multi-programming for the purpose of copying data between different devices. In contemporary systems, it is usually used for mediating between a computer application and a slow peripheral, such as a printer.

5. What is the use of terminal in linux ?
Terminal provides an interface into which users can type commands and that can print text. When you SSH into your Linux server, the program that you run on your local computer and type commands into is a terminal.

Author: user

Leave a Reply