100 questions and answers related to Operating System (OS) software
by Prasanta Nandi
Basics of Operating System
What is an Operating System?
- An OS is system software that manages computer hardware and software resources and provides common services for computer programs.
Name some common Operating Systems.
- Windows, macOS, Linux, Unix, Android, iOS.
What are the main functions of an OS?
- Process management, memory management, file system management, device management, security, and user interface.
What are the types of Operating Systems?
- Batch OS, Time-sharing OS, Distributed OS, Network OS, Real-time OS, Mobile OS.
What is a Kernel?
- The kernel is the core part of an OS that controls system operations, hardware, and resources.
What are the two types of Kernels?
- Monolithic Kernel and Microkernel.
What is a Shell in an OS?
- A shell is a command-line interface that interacts with the OS kernel.
What is the difference between GUI and CLI?
- GUI (Graphical User Interface) uses graphical elements, while CLI (Command Line Interface) uses text commands.
What is a Multi-user OS?
- An OS that allows multiple users to access the system resources simultaneously, like Unix and Windows Server.
What is a Multi-tasking OS?
- An OS that allows running multiple applications at the same time, like Windows and Linux.
Process Management
- What is a Process in an OS?
- A process is a program in execution, including its code, data, and resources.
- What are the states of a Process?
- New, Ready, Running, Waiting, Terminated.
- What is Process Scheduling?
- The method an OS uses to determine which process runs at a given time.
- What are the types of Process Scheduling?
- Long-term, Short-term, and Medium-term scheduling.
- What is a Scheduler?
- A scheduler manages process execution by deciding which process gets CPU time.
- What is a Context Switch?
- The process of switching the CPU from one process to another.
- What is Inter-Process Communication (IPC)?
- A mechanism that allows processes to communicate with each other.
- What is Thread in OS?
- A thread is the smallest unit of execution within a process.
- What are the types of Threads?
- User-level Threads and Kernel-level Threads.
- What is a Deadlock?
- A situation where two or more processes are unable to proceed because each is waiting for the other to release resources.
Memory Management
- What is Memory Management in OS?
- The process of controlling and coordinating computer memory, including RAM and cache.
- What is Virtual Memory?
- A memory management technique that creates an illusion of a larger RAM by using disk space.
- What is Paging?
- A memory management scheme that eliminates fragmentation by dividing memory into fixed-size pages.
- What is Segmentation?
- A memory management technique that divides memory into variable-sized segments.
- What is Demand Paging?
- A process where pages are loaded into memory only when needed.
- What is Thrashing?
- A condition where excessive paging reduces performance.
- What is the role of the Memory Manager?
- It allocates and deallocates memory to processes efficiently.
- What is a Page Fault?
- It occurs when a requested page is not found in memory and must be fetched from disk.
- What is Swapping?
- Moving a process between main memory and disk to free up space.
- What is Fragmentation in Memory Management?
- The inefficient use of memory due to free space being split into small, unusable blocks.
File System Management
- What is a File System?
- A system that manages how data is stored and retrieved on a disk.
- What are the types of File Systems?
- FAT32, NTFS, EXT4, HFS+.
- What is a Directory?
- A logical structure that stores and organizes files.
- What is a File Descriptor?
- A unique identifier for an open file.
- What is Mounting in OS?
- Attaching a storage device to a directory structure.
Device Management
- What is Device Management?
- The process of controlling and coordinating input/output devices.
- What is a Device Driver?
- Software that allows the OS to interact with hardware.
Security & Protection
- What is an OS Security?
- Protecting the OS from threats like malware, unauthorized access, and system failures.
- What are Access Control Mechanisms?
- Techniques to restrict unauthorized access to data and resources.
- What is Authentication in OS?
- The process of verifying user identity.
Advanced OS Concepts
- What is a Distributed OS?
- An OS that manages multiple computers as a single system.
- What is a Real-time OS?
- An OS designed to process data within a strict time limit.
- What is a Network OS?
- An OS that supports networking functions like remote access and file sharing.
- What is Load Balancing in OS?
- Distributing workloads across multiple resources to optimize performance.
Command Line Interface (CLI) Commands
- What is the ‘ls’ command in Linux?
- It lists files and directories.
- What does the ‘cd’ command do?
- Changes the directory.
- What is the ‘pwd’ command?
- Prints the current working directory.
- What is the ‘rm’ command?
- Removes files or directories.
- What is the ‘chmod’ command?
- Changes file permissions.
- What is the ‘cp’ command?
- Copies files and directories.
Windows OS Specific Questions
- What is the Windows Registry?
- A database that stores system settings.
- What is Task Manager in Windows?
- A tool for monitoring processes and system performance.
- What is the difference between Sleep and Hibernate?
- Sleep mode saves data in RAM, Hibernate saves it on disk.
Linux OS Specific Questions
- What is the root user in Linux?
- The superuser with full system access.
- What is the difference between ‘apt’ and ‘yum’?
- ‘apt’ is used in Debian-based systems, ‘yum’ in RedHat-based systems.