π Computer β Computer
Operating System Concepts, Functions, Process Management, and User Interface (Operating System 1)
Comprehensive study material on operating system concepts, types, processes, memory, and resource management
One-Liner Questions
What is the basic definition of an Operating System (OS)?
It is a core collection of system software that acts as an interface between computer hardware and the user.
Tap to view answer
What is the primary objective of an Operating System?
To manage computer resources (CPU, memory, I/O devices) efficiently and provide a convenient environment for users to run programs.
Tap to view answer
What part of an Operating System is the Kernel?
It is the most central and critical component of the OS that communicates directly with the hardware.
Tap to view answer
What is meant by the Booting process?
The process of powering on a computer and loading the operating system into main memory (RAM).
Tap to view answer
Give an example of a Single-User Operating System.
MS-DOS, in which only one user can work at a time.
Tap to view answer
What is the main feature of a Multi-User Operating System?
It allows multiple users to share computer resources simultaneously over a network.
Tap to view answer
How does a Batch Operating System work?
It collects similar jobs into batches and executes them sequentially without user intervention.
Tap to view answer
What is the main purpose of a Multitasking or Time-Sharing Operating System?
To keep multiple tasks active by rapidly dividing CPU time among different jobs and users.
Tap to view answer
Where is a Real-Time Operating System (RTOS) used?
In systems where strict timing and instant response are critical, such as spacecraft, missile control, and medical equipment.
Tap to view answer
What is the difference between a Hard Real-Time and a Soft Real-Time system?
In a Hard RTOS, missing a deadline results in complete failure, whereas in a Soft RTOS, minor delays may be acceptable.
Tap to view answer
What is the key characteristic of a Distributed Operating System?
It enables a group of independent computers to function together as a single integrated system.
Tap to view answer
What is a Process?
A computer program currently in execution.
Tap to view answer
What is stored in a Process Control Block (PCB)?
All information related to a process, including its state, program counter, CPU registers, and memory allocation.
Tap to view answer
What are the main states of a process?
New, Ready, Running, Waiting (Blocked), and Terminated (Completed).
Tap to view answer
What is Context Switching?
The process by which the CPU pauses one process, saves its state, and loads the state of another process.
Tap to view answer
What is the primary goal of CPU Scheduling?
To maximize CPU utilization and minimize waiting time to improve overall system efficiency.
Tap to view answer
What is the difference between Preemptive and Non-Preemptive scheduling?
In preemptive scheduling, a running process can be forcibly interrupted, whereas in non-preemptive scheduling, it runs until completion or blocking.
Tap to view answer
What is the full form of FCFS in scheduling algorithms?
First-Come, First-Served; the process that arrives first gets the CPU first.
Tap to view answer
What is the key feature of SJF (Shortest Job First) scheduling?
The process with the shortest CPU burst time is executed first.
Tap to view answer
What is Round Robin scheduling based on?
It is a preemptive scheduling algorithm based on a fixed time slice called a Time Quantum.
Tap to view answer
What is a Thread also known as?
A 'Lightweight Process,' representing the smallest executable unit within a process.
Tap to view answer
When does a Deadlock occur?
When two or more processes wait indefinitely for resources held by each other.
Tap to view answer
What are Coffman's conditions for a Deadlock to occur?
Mutual Exclusion, Hold and Wait, No Preemption, and Circular Wait.
Tap to view answer
What is the main function of Memory Management?
Allocating, tracking, and deallocating different portions of main memory (RAM).
Tap to view answer
What is the difference between a Logical Address and a Physical Address?
A logical address is generated by the CPU, whereas a physical address refers to the actual location in the memory unit.
Tap to view answer
What is the process of mapping a logical address to a physical address called?
Address translation, performed by the Memory Management Unit (MMU).
Tap to view answer
What is Swapping?
Temporarily moving a process from main memory to secondary disk storage (backing store) and bringing it back when needed.
Tap to view answer
What is the main advantage of Virtual Memory?
It allows programs larger than physical RAM to execute by using secondary storage.
Tap to view answer
How is memory divided in Paging?
Into fixed-size blocks called Pages (logical memory) and Frames (physical memory).
Tap to view answer
When does a Page Fault occur?
When a requested page is not present in main memory and must be fetched from the disk.
Tap to view answer
What is Thrashing?
A condition where the OS spends most of its time swapping pages instead of executing useful work, severely slowing down the system.
Tap to view answer
What does File Management ensure in an OS?
The organization, storage, retrieval, naming, and protection of data files.
Tap to view answer
What information is stored in a File Control Block (FCB)?
Details about file permissions, ownership, size, and physical location on the disk.
Tap to view answer
What is the main purpose of a Directory Structure?
To organize files into logical groups (such as a tree structure).
Tap to view answer
Which software does an OS use to manage I/O devices?
Device Drivers.
Tap to view answer
What is the main use of Spooling (SPOOL) technology?
Temporarily holding data in a disk buffer to coordinate with slow I/O devices like printers.
Tap to view answer
What is a prominent example of a Command Line Interface (CLI)?
Linux Shell, Windows Command Prompt, or MS-DOS.
Tap to view answer
What is the main feature of a Graphical User Interface (GUI)?
It provides visual interaction through icons, menus, and windows instead of text commands.
Tap to view answer
What type of operating system is Linux?
It is an open-source, multi-user, and multitasking Unix-like operating system.
Tap to view answer
Who initiated the development of the Linux kernel, and when?
Linus Torvalds in 1991.
Tap to view answer
Which company developed the Windows operating system?
Microsoft.
Tap to view answer
What is the Android operating system primarily based on?
It is a mobile operating system based on the Linux kernel.
Tap to view answer
Which company owns the iOS mobile operating system?
It is a proprietary mobile operating system developed by Apple Inc.
Tap to view answer
What is the characteristic of a Monolithic Kernel?
All operating system services (file systems, device drivers, etc.) run together in kernel space.
Tap to view answer
What is the main advantage of Microkernel architecture?
It keeps non-essential services in user space, making the kernel smaller and more secure.
Tap to view answer
Which OS is an example of a Hybrid Kernel?
Microsoft Windows (Windows NT kernel).
Tap to view answer
What is a System Call?
The programmatic interface through which a user program requests services from the OS kernel.
Tap to view answer
How are security and access control implemented in an OS?
Through user authentication, passwords, and file permissions (Read, Write, Execute).
Tap to view answer
What is the biggest advantage of open-source software?
Its source code can be freely viewed, modified, and distributed.
Tap to view answer
What is the primary programming language of the UNIX operating system?
The C programming language.
Tap to view answer
What function does the Shell perform in Linux/UNIX?
It reads user commands, passes them to the kernel for execution, and displays the output.
Tap to view answer
What is a common technique for Deadlock Recovery?
Process termination or resource preemption.
Tap to view answer
What is the main function of Buffer Memory?
Temporary storage used to balance speed differences during data transfer.
Tap to view answer
Who manages Cache Memory?
It is primarily managed by hardware and the CPU, working in coordination with the OS.
Tap to view answer
What is the benefit of a Multi-processor System?
Increased throughput and better performance due to having more than one CPU.
Tap to view answer
What is Symmetric Multiprocessing (SMP)?
A system in which all processors equally control the OS and execute tasks.
Tap to view answer
What happens in Asymmetric Multiprocessing (ASMP)?
A master processor assigns and controls tasks for the other slave processors.
Tap to view answer
What is meant by Fragmentation?
The division of memory or disk space into small, non-contiguous chunks, making it difficult to allocate large blocks.
Tap to view answer
Distinguish between External Fragmentation and Internal Fragmentation.
External fragmentation is free space scattered outside allocated memory blocks, whereas internal fragmentation is wasted space inside an allocated block.
Tap to view answer
What is the Compaction technique used for?
Consolidating all scattered free memory spaces into one large contiguous block to eliminate external fragmentation.
Tap to view answer
Which file system is File Allocation Table (FAT) associated with?
Older Microsoft Windows file systems (FAT16, FAT32).
Tap to view answer
What is the full form of NTFS, and which OS uses it?
New Technology File System; it is used in modern Windows operating systems.
Tap to view answer
Which operating system family primarily uses the EXT4 file system?
The Linux operating system.
Tap to view answer
How does Indexed Allocation work in a file system?
Each file has an index block that stores pointers to all of its data blocks.
Tap to view answer
What is meant by spawning a process?
The creation of a new child process by a parent process.
Tap to view answer
What is the Fork system call used for?
To create a new process in UNIX/Linux.
Tap to view answer
What does the Exec system call do?
It loads and executes a new program within the memory space of the current process.
Tap to view answer
Why is Inter-Process Communication (IPC) needed?
To exchange data and information between different running processes.
Tap to view answer
What are the two main methods of IPC?
Shared Memory and Message Passing.
Tap to view answer
What is the function of a Semaphore synchronization tool?
It is a variable used to control access to a Critical Section among multiple processes.
Tap to view answer
What is the main difference between a Mutex and a Semaphore?
A Mutex is a locking mechanism allowing only one process at a time, whereas a Semaphore is a counter-based signaling mechanism.
Tap to view answer
What is the Critical Section problem?
Protecting a section of code where shared resources are modified from conflicting concurrent access.
Tap to view answer
What is Banker's Algorithm used for?
For deadlock avoidance by checking whether resource allocation leaves the system in a safe state.
Tap to view answer
What is the main limitation of FCFS disk scheduling?
The disk arm may have to travel long distances back and forth, increasing average seek time.
Tap to view answer
By what other name is the SCAN disk scheduling algorithm known?
The Elevator Algorithm, as the disk arm moves from one end of the disk to the other.
Tap to view answer
What is the characteristic of C-SCAN (Circular SCAN) disk scheduling?
It services requests in only one direction and jumps directly back to the beginning upon reaching the end.
Tap to view answer
How is a Device Driver defined in software terms?
It is a translator or interface that enables the operating system to communicate with specific hardware.
Tap to view answer
What is Plug-and-Play (PnP) technology?
The ability of an OS to automatically detect and configure new hardware devices as soon as they are connected.
Tap to view answer
What does the System Restore feature do in Windows?
It reverts system files and settings back to an earlier safe state (Restore Point).
Tap to view answer
What is the Registry in the Windows operating system?
A hierarchical database that stores system and application configuration settings.
Tap to view answer
What is the main use of Control Panel or the Settings app?
Managing various operating system settings, hardware, and network configurations.
Tap to view answer
What is Task Manager used for?
Monitoring running processes, CPU/RAM usage, and forcefully closing unresponsive apps.
Tap to view answer
What is the key difference between Open-Source and Proprietary operating systems?
Open-source OSs are free to inspect and modify, whereas proprietary OSs (like Windows) are privately owned with restricted source code.
Tap to view answer
Give some popular examples of Linux distributions (Distros).
Ubuntu, Fedora, Debian, Linux Mint, and Arch Linux.
Tap to view answer
What is the technical basis of similarity between UNIX and Linux?
Both adhere to POSIX standards and share very similar command structures.
Tap to view answer
What is an example of a Network Operating System (NOS)?
Windows Server, Novell NetWare.
Tap to view answer
What is the main feature of an Embedded Operating System?
It is designed to run on limited hardware inside specialized devices (such as microwaves and washing machines).
Tap to view answer
What does the FIFO page replacement algorithm stand for?
First-In, First-Out; the oldest page in memory is replaced first when a page fault occurs.
Tap to view answer
How does LRU (Least Recently Used) page replacement work?
It replaces the page that has not been used for the longest period of time.
Tap to view answer
What is the core principle of the Optimal page replacement algorithm?
Replacing the page that will not be used for the longest time in the future (a theoretical ideal).
Tap to view answer
In which algorithm is Belady's Anomaly observed?
In FIFO page replacement, where increasing the number of page frames can paradoxically increase page faults.
Tap to view answer
What is the benefit of Disk Defragmentation?
Reorganizing scattered file fragments contiguously to improve disk access speed.
Tap to view answer
Who is the Root user in Linux?
The superuser who holds full administrative privileges over the entire system.
Tap to view answer
What is the role of Command Prompt or PowerShell in Windows?
Performing system administration and task automation using text-based commands.
Tap to view answer
What does the 'Principle of Least Privilege' mean in OS security?
Granting each user or process only the minimum permissions necessary to perform its task.
Tap to view answer
At what level do firewall and antivirus protections operate?
They operate as security software on top of the OS or at the kernel level to protect against network threats and malware.
Tap to view answer
Which part of the operating system handles data recovery and backup management?
Storage and file system management utilities.
Tap to view answer
Where is the Bootstrap Loader located in ROM?
It is permanently stored in the motherboard's BIOS/UEFI chip.
Tap to view answer
Which component of an operating system bridges the gap between the user and hardware?
The kernel and system software.
Tap to view answer
What is the main function of an I/O Controller for storage devices?
Controlling data transfer between the CPU and peripheral devices.
Tap to view answer
What is the use of Disk Indexing?
Creating a catalog of file metadata to enable fast file searches.
Tap to view answer
Quick Reference
Key Facts and Contributions
Operating System 1
| Type / Function | Key Feature | Examples / Role |
|---|---|---|
| Batch Operating System | Groups similar jobs into batches and executes them sequentially without user interaction | Early mainframe computers, payroll and billing processing |
| Time-Sharing / Multitasking | Divides CPU time to run multiple tasks or serve multiple users simultaneously | Modern Windows, Linux, macOS; browsing and coding at the same time |
| Real-Time OS (RTOS) | Delivers ultra-fast and deterministic responses within strict deadlines | Spacecraft control, air traffic control, medical pacemakers |
| Distributed OS | Presents physically separate independent computers as a single unified system | Cloud computing clusters, grid computing networks |
| Process Management | Handles CPU scheduling, process creation, synchronization, and deadlock prevention | Optimal allocation of system resources and multiprocessing control |
| Memory Management | Controls RAM allocation, virtual memory, paging, and swapping | Running large programs smoothly within limited physical RAM |
| File Management | Manages file organization, directory structures, and access permissions | Securing data through FAT, NTFS, and EXT4 file systems |
| User Interface (UI) | Establishes communication between the user and the system (CLI or GUI) | Windows desktop environment or Linux terminal (Bash) |
No matching content found.