Functions of an Operating System

An Operating System (OS) is responsible for managing hardware and software resources while providing services to users and applications. Below are its key functions:

1. Process Management

  • Creates, schedules, and terminates processes (running programs).
  • Uses CPU scheduling algorithms (e.g., Round Robin, FCFS) for multitasking.
  • Manages inter-process communication and synchronization.

2. Memory Management

  • Allocates and deallocates memory for processes.
  • Uses techniques like paging, segmentation, and virtual memory to optimize RAM usage.
  • Prevents memory leaks and ensures efficient memory allocation.

3. File System Management

  • Organizes, stores, retrieves, and manages data in files and directories.
  • Supports different file systems (e.g., NTFS, FAT32, EXT4).
  • Provides file permissions and access control for security.

4. Device Management

  • Controls hardware devices like keyboards, printers, and storage devices.
  • Uses device drivers to enable communication between hardware and software.
  • Implements buffering, caching, and spooling for efficient device operations.

5. Security & Access Control

  • Protects data and resources from unauthorized access.
  • Implements user authentication (passwords, biometrics) and encryption.
  • Manages access permissions for files and programs.

6. User Interface (UI) Management

  • Provides an interface for user interaction:
  • Command-Line Interface (CLI) (e.g., Linux Terminal, Windows CMD)
  • Graphical User Interface (GUI) (e.g., Windows, macOS)

7. Job Scheduling & Resource Allocation

  • Prioritizes tasks and assigns system resources efficiently.
  • Uses algorithms like First Come First Serve (FCFS), Shortest Job Next (SJN), and Round Robin for scheduling.
  • Ensures fair resource allocation among users and processes.

8. Networking Management

  • Manages network connections and communication between computers.
  • Supports protocols like TCP/IP for internet and LAN communication.
  • Enables file sharing, remote access, and cloud integration.

9. Error Detection & Handling

  • Detects system failures and takes corrective actions (e.g., restarting crashed programs).
  • Logs errors for troubleshooting.
  • Prevents system crashes by handling hardware and software faults.

10. Multitasking & Multithreading

  • Multitasking: Runs multiple programs simultaneously (e.g., browsing while downloading).
  • Multithreading: Allows a single program to execute multiple tasks at once (e.g., running multiple tabs in a browser).
Qus. 1 : Access time is =

  1. Seek time + latency time
  2. Seek time
  3. Seek time - latency time
  4. Latency time
Qus. 2 : Ready queue in OS is maintained by ____

  1. Array
  2. Stack
  3. Linked List
  4. Tree
Qus. 3 : The best option to relate a process is a

  1. An Operating System itself
  2. Complete software package
  3. Program in execution
  4. Interrupt handler
Qus. 4 : In the multithreaded model scheduling of thread execution is a task of ________?

  1. Input
  2. Output
  3. Memory
  4. Operation System
Qus. 5 : <p>Match the following Windows shortcut keys with their correct functions.</p><p><br></p><table class="table table-bordered"><tbody><tr><td><b>Shortcut Keys</b></td><td><b>Functions</b></td></tr><tr><td>1. Ctrl + P</td><td>A. Takes a screenshot</td></tr><tr><td>2. Ctrl + Z</td><td>B. Opens the search bar</td></tr><tr><td>3. Win + S</td><td>C. Undoes the last action</td></tr><tr><td>4. Win + PrtSc</td><td>D. Prints a document</td></tr><tr><td><br></td><td>E. Redoes the last action</td></tr><tr><td><br></td><td>F. Opens system settings</td></tr></tbody></table><p><br></p>

  1. 1-F, 2-D, 3-C, 4-E
  2. 1-B, 2-E, 3-D, 4-F
  3. 1-A, 2-B, 3-C, 4-D
  4. 1-D, 2-C, 3-B, 4-A

Programs

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad