OS_important viva questions
OS_important viva questions
An OS is system software that acts as an intermediary between the user and the hardware, managing
resources and providing services for application software.
Process management, memory management, file system management, device management, and
security.
Batch OS, Time-sharing OS, Distributed OS, Real-time OS, Embedded OS, and Network OS.
The kernel is the core part of the OS that manages hardware resources and facilitates communication
between hardware and software.
What is a process?
A process is an independent execution unit with its own memory space, while a thread is a lightweight
execution unit within a process sharing the process's memory.
Context switching is the process of saving the state of a running process and loading the state of another
process.
Virtual memory is a memory management technique that gives an application the impression it has
contiguous memory while actually using physical memory and disk space.
What is paging?
Paging is a memory management scheme that eliminates the need for contiguous memory by dividing
memory into fixed-size pages.
What is segmentation?
Segmentation divides memory into variable-sized segments based on the logical division of a program.
What is fragmentation?
Fragmentation occurs when memory is ine iciently utilized.
A page fault occurs when a program accesses a page that is not in memory, requiring the OS to retrieve it
from secondary storage.
FAT (File Allocation Table) is simpler and less secure, while NTFS (New Technology File System) supports
larger files, encryption, and permissions.
An inode is a data structure used in UNIX-based file systems to store metadata about a file.
What is a deadlock?
A deadlock occurs when two or more processes are waiting indefinitely for resources held by each other.
A directed graph used to represent processes and resources, useful for detecting deadlocks.
Synchronization ensures that multiple processes or threads execute in a manner that maintains data
consistency.
A race condition occurs when the outcome of a process depends on the non-deterministic order of
execution.
A monitor is a high-level synchronization construct that encapsulates shared variables and methods.
A hardware device that allows communication between the computer and the external environment.
DMA allows devices to transfer data to/from memory without CPU intervention.
What is spooling?
Spooling (Simultaneous Peripheral Operations On-Line) is a process of bu ering data to allow I/O devices
to work independently.
What is an interrupt?
An interrupt is a signal to the CPU to indicate an event that needs immediate attention.
What is multitasking?
Multitasking involves multiple processes; multithreading involves multiple threads within a single process.
A shell is a command-line interface that allows users to interact with the OS.