Operating System
Operating System
1. Process Management
o Definition: The OS manages processes, which are programs in execution. This
includes starting, stopping, and coordinating multiple processes.
o Key Functions:
Process Creation: When you open a program, the OS creates a process,
allocating necessary resources like memory and CPU time.
Scheduling: The OS uses scheduling algorithms (like Round Robin or
Shortest Job First) to decide which process runs at any given moment.
This ensures fair and efficient use of CPU time.
Process Termination: Once a process completes its task, the OS
terminates it and releases its resources for use by other processes.
Inter-Process Communication (IPC): The OS allows processes to
communicate and synchronize their actions when needed.
2. Memory Management
o Definition: The OS is responsible for managing the computer's memory, which
includes both primary memory (RAM) and secondary storage (hard drives).
o Key Functions:
Memory Allocation: When a program runs, the OS allocates memory
blocks to it. It keeps track of which memory is allocated and which is
free.
Memory Deallocation: After a process ends, the OS frees its allocated
memory, making it available for new processes.
Virtual Memory: To extend the available memory, the OS uses
techniques like paging and segmentation, allowing larger applications to
run even if they exceed physical RAM capacity.
3. File System Management
o Definition: The OS organizes and manages how data is stored and retrieved on
storage devices.
o Key Functions:
File Creation and Deletion: Users can create and delete files, and the OS
maintains this information in its file system.
File Organization: The OS organizes files in directories (folders), creating
a hierarchical structure for easy access and management.
Access Control: The OS manages permissions for files, ensuring only
authorized users can read, write, or execute files.
Backup and Recovery: The OS often includes features for data backup to
protect against loss due to hardware failure or accidental deletion.
4. Device Management
o Definition: The OS controls and manages hardware devices connected to the
computer, such as printers, keyboards, and hard drives.
o Key Functions:
Device Drivers: The OS uses drivers—specific programs that allow the
OS to communicate with hardware devices. Each device requires its
driver to function correctly.
Input/Output (I/O) Management: The OS manages I/O operations,
coordinating data transfers between the computer and its peripherals.
Resource Allocation: It allocates the necessary resources (like bandwidth
and processing time) to each device, ensuring they operate efficiently and
without conflict.
5. Security and Access Control
o Definition: The OS provides security measures to protect data and resources
from unauthorized access.
o Key Functions:
User Authentication: The OS requires users to log in with a username and
password, verifying their identity before granting access.
Access Permissions: The OS sets permissions for files and resources,
determining which users can read, write, or execute them.
Data Protection: The OS uses encryption and firewall technologies to
protect data from malware and unauthorized access, ensuring system
integrity.
6. User Interface (UI)
o Definition: The OS provides a way for users to interact with the computer
system, making it user-friendly.
o Key Functions:
Graphical User Interface (GUI): Many operating systems use a GUI that
includes windows, icons, and menus, allowing users to navigate easily.
Command-Line Interface (CLI): Some systems allow advanced users to
interact with the OS using text commands, providing more control over
operations.
Accessibility Features: The OS includes features to assist users with
disabilities, such as screen readers, magnifiers, and voice recognition.