Index

General

  1. What is the main purpose of an operating system?
  2. What are the different operating systems?
  3. What is a socket?
  4. What is a real-time system?
  5. What is kernel?
  6. What is monolithic kernel?
  7. What do you mean by a process?
  8. What are the different states of a process?
  9. What is the difference between micro kernel and macro kernel?
  10. What is the concept of reentrancy?
  11. What is the difference between process and program?
  12. What is the use of paging in operating system?
  13. What is the concept of demand paging?
  14. What is the advantage of a multiprocessor system?
  15. What is virtual memory?
  16. What is thrashing?
  17. What is a thread?
  18. What are the benefits of multithreaded programming?
  19. What is FCFS?
  20. What is SMP?
  21. What is deadlock? Explain.
  22. What are the different scheduling algorithms.
  23. What is Banker's algorithm?
  24. What is the difference between logical address space and physical address space?
  25. What is fragmentation?
  26. How many types of fragmentation occur in Operating System?
  27. What is spooling?
  28. What is the difference between internal commands and external commands?
  29. What is semaphore?
  30. What is a binary Semaphore?
  31. What is Belady's Anomaly?
  32. What is starvation in Operating System?
  33. What is aging in Operating System?
  34. What are overlays?
  35. What is Virtual Memory?
  36. What is Thrashing?
  37. What is time- sharing system?
  38. What is SMP?
  39. What is asymmetric clustering?
  40. What is RR scheduling algorithm?
  41. What factors determine whether a detection-algorithm must be utilized in a deadlock avoidance system?
  42. What is Direct Access Method?
  43. What is root partition?
  44. What are the primary functions of VFS?
  45. What is the purpose of an I/O status information?
  46. What is multitasking?
  47. Explain pros and cons of a command line interface?
  48. What is caching?
  49. What is an Assembler?
  50. What is GUI?
  51. What is preemptive multitasking?
  52. What is plumbing/piping?
  53. What is NOS?
  54. What is the Translation Lookaside Buffer (TLB)?
  55. What is cycle stealing?
  56. What is meant by arm-stickiness?
  57. What is page cannibalizing?
  58. What are the four layers that Windows NT have in order to achieve independence?
  59. Explain Booting the system and Bootstrap program in operating system.
  60. What is a command interpreter?
  61. What is a daemon?
  62. What do you mean by a zombie process?
  63. What do you know about a Pipe? When is it used?
  64. Explain PCB.
  65. What is context switching ?
  66. What is EIDE?
  67. Explain the execution cycle for a von Neumann architecture.
  68. What is DLM?
  69. What is RAID and what are its different levels?
  70. Explain the different sections of a process.
  71. What is IPC?
  72. What do you know about mutex?
  73. What is the reader-writer lock?
  74. What is compaction?


The Questions
General
1. What is the main purpose of an operating system? โ†‘
  • It is designed to make sure that a computer system performs well by managing its computational activities.
  • It provides an environment for the development and execution of programs.
2. What are the different operating systems? โ†‘
  • Batched operating systems
  • Distributed operating systems
  • Timesharing operating systems
  • Multi-programmed operating systems
  • Real-time operating systems
3. What is a socket? โ†‘

A socket is used to make connection between two applications. Endpoints of the connection are called socket.

4. What is a real-time system? โ†‘

Real-time system is used in the case when rigid-time requirements have been placed on the operation of a processor. It contains a well defined and fixed time constraints.

5. 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.

6. What is monolithic kernel? โ†‘

A monolithic kernel is a kernel which includes all operating system code is in single executable image.

7. What do you mean by a process? โ†‘

An executing program is known as process. There are two types of processes:

  • Operating System Processes
  • User Processes
8. What are the different states of a process? โ†‘

A list of different states of process:

  • New Process
  • Running Process
  • Waiting Process
  • Ready Process
  • Terminated Process
9. 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.

10. 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:

  • The program code cannot modify itself.
  • The local data for each user process must be stored separately.
11. What is the difference between process and program? โ†‘

A program while running or executing is known as a process.

12. What is the use of paging in operating system? โ†‘

Paging is used to solve the external fragmentation problem in operating system. This technique ensures that the data you need is available as quickly as possible.

13. What is the concept of demand paging? โ†‘

Demand paging specifies that if an area of memory is not currently being used, it is swapped to disk to make room for an application's need.

14. What is the advantage of a multiprocessor system? โ†‘

As many as processors are increased, you will get the considerable increment in throughput. It is cost effective also because they can share resources. So, the overall reliability increases.

15. What is virtual memory? โ†‘

Virtual memory is a very useful memory management technique which enables processes to execute outside of memory. This technique is especially used when an executing program cannot fit in the physical memory.

16. What is thrashing? โ†‘

Thrashing is a phenomenon in virtual memory scheme when the processor spends most of its time in swapping pages, rather than executing instructions.

17. What is a thread? โ†‘

A thread is a basic unit of CPU utilization. It consists of a thread ID, program counter, register set and a stack.

18. What are the benefits of multithreaded programming? โ†‘

It makes the system more responsive and enables resource sharing. It leads to the use of multiprocess architectur.It is more economical and preferred.

19. What is FCFS? โ†‘

FCFS stands for First Come, First Served. It is a type of scheduling algorithm. In this scheme, if a process requests the CPU first, it is allocated to the CPU first. Its implementation is managed by a FIFO queue.

20. What is SMP? โ†‘

SMP stands for Symmetric MultiProcessing. It is the most common type of multiple processor system. In SMP, each processor runs an identical copy of the operating system, and these copies communicate with one another when required.

21. What is deadlock? Explain. โ†‘

Deadlock is a specific situation or condition where two processes are waiting for each other to complete so that they can start. But this situation causes hang for both of them.

22. What are the different scheduling algorithms. โ†‘
  • First-Come, First-Served (FCFS) Scheduling.
  • Shortest-Job-Next (SJN) Scheduling.
  • Priority Scheduling.
  • Shortest Remaining Time.
  • Round Robin(RR) Scheduling.
  • Multiple-Level Queues Scheduling.
23. What is Banker's algorithm? โ†‘

Banker's algorithm is used to avoid deadlock. It is the one of deadlock-avoidance method. It is named as Banker's algorithm on the banking system where bank never allocates available cash in such a manner that it can no longer satisfy the requirements of all of its customers.

24. 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.

25. What is fragmentation? โ†‘

Fragmentation is a phenomenon of memory wastage. It reduces the capacity and performance because space is used inefficiently.

26. How many types of fragmentation occur in Operating System? โ†‘
  • Internal fragmentation: It is occurred when we deal with the systems that have fixed size allocation units.
  • External fragmentation: It is occurred when we deal with systems that have variable-size allocation units.
27. What is spooling? โ†‘

Spooling is a process in which data is temporarily gathered to be used and executed by a device, program or the system. It is associated with printing. When different applications send output to the printer at the same time, spooling keeps these all jobs into a disk file and queues them accordingly to the printer.

28. 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.

29. What is semaphore? โ†‘

Semaphore is a protected variable or abstract data type that is used to lock the resource being used. The value of the semaphore indicates the status of a common resource.

There are two types of semaphore:

  • Binary semaphores
  • Counting semaphores
30. What is a binary Semaphore? โ†‘

Binary semaphore takes only 0 and 1 as value and used to implement mutual exclusion and synchronize concurrent processes.

31. What is Belady's Anomaly? โ†‘

Belady's Anomaly is also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

32. What is starvation in Operating System? โ†‘

Starvation is Resource management problem. In this problem, a waiting process does not get the resources it needs for a long time because the resources are being allocated to other processes.

33. What is aging in Operating System? โ†‘

Aging is a technique used to avoid the starvation in resource scheduling system.

34. What are overlays? โ†‘

Overlays makes a process to be larger than the amount of memory allocated to it. It ensures that only important instructions and data at any given time are kept in memory.

35. What is Virtual Memory? โ†‘

Virtual memory creates an illusion that each user has one or more contiguous address spaces, each beginning at address zero. The sizes of such virtual address spaces is generally very high. The idea of virtual memory is to use disk space to extend the RAM. Running processes donโ€™t need to care whether the memory is from RAM or disk. The illusion of such a large amount of memory is created by subdividing the virtual memory into smaller pieces, which can be loaded into physical memory whenever they are needed by a process.

36. What is Thrashing? โ†‘

Thrashing is a situation when the performance of a computer degrades or collapses. Thrashing occurs when a system spends more time processing page faults than executing transactions. While processing page faults is necessary to in order to appreciate the benefits of virtual memory, thrashing has a negative affect on the system. As the page fault rate increases, more transactions need processing from the paging device. The queue at the paging device increases, resulting in increased service time for a page fault.

37. What is time- sharing system? โ†‘

In a Time-sharing system, the CPU executes multiple jobs by switching among them, also known as multitasking. This process happens so fast that users can interact with each program while it is running.

38. What is SMP? โ†‘

SMP is a short form of Symmetric Multi-Processing. It is the most common type of multiple-processor systems. In this system, each processor runs an identical copy of the operating system, and these copies communicate with one another as needed.

39. What is asymmetric clustering? โ†‘

In asymmetric clustering, a machine is in a state known as hot standby mode where it does nothing but to monitor the active server. That machine takes the active serverโ€™s role should the server fails.

40. What is RR scheduling algorithm? โ†‘

RR (round-robin) scheduling algorithm is primarily aimed for time-sharing systems. A circular queue is a setup in such a way that the CPU scheduler goes around that queue, allocating CPU to each process for a time interval of up to around 10 to 100 milliseconds.

41. What factors determine whether a detection-algorithm must be utilized in a deadlock avoidance system? โ†‘

One is that it depends on how often a deadlock is likely to occur under the implementation of this algorithm. The other has to do with how many processes will be affected by deadlock when this algorithm is applied.

42. What is Direct Access Method? โ†‘

Direct Access method is based on a disk model of a file, such that it is viewed as a numbered sequence of blocks or records. It allows arbitrary blocks to be read or written. Direct access is advantageous when accessing large amounts of information.

43. What is root partition? โ†‘

Root partition is where the operating system kernel is located. It also contains other potentially important system files that are mounted during boot time.

44. What are the primary functions of VFS? โ†‘

VFS, or Virtual File System, separate file system generic operations from their implementation by defining a clean VFS interface. It is based on a file-representation structure known as vnode, which contains a numerical designator needed to support network file systems.

45. What is the purpose of an I/O status information? โ†‘

I/O status information provides information about which I/O devices are to be allocated for a particular process. It also shows which files are opened, and other I/O device state.

46. What is multitasking? โ†‘

Multitasking is the process within an operating system that allows the user to run several applications at the same time. However, only one application is active at a time for user interaction, although some applications can run โ€œbehind the sceneโ€.

47. Explain pros and cons of a command line interface? โ†‘

A command line interface allows the user to type in commands that can immediately provide results. Many seasoned computer users are well accustomed to using the command line because they find it quicker and simpler.

However, the main problem with a command line interface is that users have to be familiar with the commands, including the switches and parameters that come with it. This is a downside for people who are not fond of memorizing commands.

48. What is caching? โ†‘

Caching is the processing of utilizing a region of fast memory for a limited data and process. A cache memory is usually much efficient because of its high access speed.

49. What is an Assembler? โ†‘

An assembler acts as a translator for low-level language. Assembly codes written using mnemonic commands are translated by the Assembler into machine language.

50. What is GUI? โ†‘

GUI is short for Graphical User Interface. It provides users with an interface wherein actions can be performed by interacting with icons and graphical symbols. People find it easier to interact with the computer when in a GUI especially when using the mouse. Instead of having to remember and type commands, users click on buttons to perform a process.

51. What is preemptive multitasking? โ†‘

Preemptive multitasking allows an operating system to switch between software programs. This, in turn, allows multiple programs to run without necessarily taking complete control over the processor and resulting in system crashes.

52. What is plumbing/piping? โ†‘

It is the process of using the output of one program as an input to another. For example, instead of sending the listing of a folder or drive to the main screen, it can be piped and sent to a file, or sent to the printer to produce a hard copy.

53. What is NOS? โ†‘

NOS is short for Network Operating System. It is a specialized software that will allow a computer to communicate with other devices over the network, including file/folder sharing.

54. What is the Translation Lookaside Buffer (TLB)? โ†‘

In a cached system, the base addresses of the last few referenced pages is maintained in registers called the TLB that aids in faster lookup. TLB contains those page-table entries that have been most recently used. Normally, each virtual memory reference causes 2 physical memory accesses- one to fetch appropriate page-table entry, and one to fetch the desired data. Using TLB in-between, this is reduced to just one physical memory access in cases of TLB-hit.

55. What is cycle stealing? โ†‘

We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

56. What is meant by arm-stickiness? โ†‘

If one or a few processes have a high access rate to data on one track of a storage disk, then they may monopolize the device by repeated requests to that track. This generally happens with most common device scheduling algorithms (LIFO, SSTF, C-SCAN, etc). High-density multisurface disks are more likely to be affected by this than low density ones.

57. What is page cannibalizing? โ†‘

Page swapping or page replacements are called page cannibalizing.

58. What are the four layers that Windows NT have in order to achieve independence? โ†‘
  • Hardware abstraction layer
  • Kernel
  • Subsystems
  • System Services.
59. Explain Booting the system and Bootstrap program in operating system. โ†‘

The procedure of starting a computer by loading the kernel is known as booting the system.

When a user first turn on or booted the computer, it needs some initial program to run. This initial program is known as Bootstrap Program. It is stored in read-only memory (ROM) or electrically erasable programmable read-only memory (EEPROM). Bootstrap program locates the kernel and loads it into main memory and starts its execution.

60. What is a command interpreter? โ†‘

It is a program that interprets the command input through keyboard or command batch file. It helps the user to interact with the OS and trigger the required system programs or execute some user application.

61. What is a daemon? โ†‘

Daemon - Disk and execution monitor, is a process that runs in the background without userโ€™s interaction. They usually start at the booting time and terminate when the system is shut down.

62. What do you mean by a zombie process? โ†‘
  • These are dead processes which are not yet removed from the process table.
  • It happens when the parent process has terminated while the child process is still running. This child process now stays as a zombie.
63. What do you know about a Pipe? When is it used? โ†‘
  • It is an IPC mechanism used for one way communication between two processes which are related.
  • A single process doesn't need to use pipe. It is used when two process wish to communicate one-way.
64. Explain PCB. โ†‘
  • PCB, process control block, is also called as the task control block.
  • It contains information about the process state like new, ready, running, waiting and halt.
  • It also includes the information regarding the process priority and pointers to scheduling queues .
  • Its counter indicates the address of the next instruction to be executed for the process.
  • It basically serves as the storage for any information that may vary from process to process.
65. What is context switching ? โ†‘
  • It is the process of switching the CPU from one process to another.
  • This requires to save the state of the old process and loading the saved state for the new process.
  • The context of the process is represented in the process control block.
  • During switching the system does no useful work.
  • How the address space is preserved and what amount of work is needed depends on the memory management.
66. What is EIDE? โ†‘
  • EIDE is a bus called enhanced integrated drive electronics.
  • The input output devices are attached to the computer by a set of wires called the bus.
  • The data transfer on a bus are carried out by electronic processes called controllers.
  • The host controller sends messages to device controller and device controller performs the operations.
  • These device controllers consist of built in cache so that data transfer occurs at faster speed.
67. Explain the execution cycle for a von Neumann architecture. โ†‘
  • Initially the system will fetch the instruction and stores it in instruction register.
  • Instruction is then decoded and may cause operands to be fetched from memory.
  • After execution the result is stored in the memory.
  • Here the memory unit sees only the memory addresses irrespective of how they are generated.
  • Memory unit is also unaware of what addresses are for.
68. What is DLM? โ†‘
  • It is the service called as distributed lock manager.
  • In cluster systems to avoid file sharing the distributed systems must provide the access control and file locking.
  • This ensures that no conflicting operations occur in the system.
  • Here the distributed file systems are not general purpose therefore it requires locking.
69. What is RAID and what are its different levels? โ†‘

RAID stands for Redundant Array of Independent Disks. To improve overall performance the data is stored redundantly and used whenever required. Following are the different RAID levels:

RAID 0 โ€“ Striped Disk Array without fault tolerance RAID 1 โ€“ Mirroring and duplexing RAID 2 โ€“ Memory-style error-correcting codes RAID 3 โ€“ Bit-interleaved Parity RAID 4 โ€“ Block-interleaved Parity RAID 5 โ€“ Block-interleaved distributed Parity RAID 6 โ€“ P+Q Redundancy

70. Explain the different sections of a process. โ†‘

There are mainly four sections in a process. They are as below:

  • Stack: contains local variables, returns address
  • Heap: Dynamically allocated memory via malloc, calloc,realloc
  • Data: contains global and static variables
  • Code or text: contains code, program counter and content of processorโ€™s register.
71. What is IPC? โ†‘

IPC stands for Inter-Process Communication, and it is a mechanism, in which various processes can communicate with each other with the approval of the Operating system.

72. What do you know about mutex? โ†‘

It is an abbreviation for Mutual Exclusion. It is a userspace program object which helps multiple threads to access the same resource, but not simultaneously. The sole purpose of mutex to lock a thread with a resource so the other threads can not use the same resource until the first thread finish executing.

73. What is the reader-writer lock? โ†‘

Reader-Writer lock is used to prevent data integrity. This lock allows the concurrent access to read operation, which means multiple threads can read data simultaneously. But it does not allow concurrent write, and if one thread is want to modify data via writing, then all the other threads will be blocked from reading or writing data.

74. What is compaction? โ†‘

The free memory of the system get split into smaller pieces when a process load or removed from the memory. Compaction helps in accumulating these small loose pieces of memory into one substantial chunk so that more memory can be allocated to the other processes.