Ez Computerहिन्दीOpen app

Operating System Concepts

Preview Part E: Operating Systems · Chapter 17 · 18 min read · 54 practice questions

After this chapter you will be able to

  • define an operating system and explain its role
  • list the main functions of an OS
  • compare CLI and GUI
  • distinguish batch, multiprogramming, multitasking, multiprocessing, real-time and distributed OS
  • explain kernel, shell, process states, scheduling and deadlock at exam level
Operating Systems OS basics Manages hardware PMF-DSU: 6 jobs Resource manager Kernel & shell Kernel = core Shell = commands Kernel mode User interfaces CLI = typed text GUI = WIMP GUI: Xerox PARC OS types Batch OS Time slices RTOS: hard, soft Processes Running program PCB holds details Round Robin Deadlock 4 conditions Banker's algorithm Semaphore Memory pages FIFO, LRU, Optimal FIFO: Belady LRU: no Belady Power & events Sleep: RAM Hibernate: disk Hang = no reply
Chapter 17 at a glance Recall the six OS jobs (PMF-DSU), then the terms people mix up: multiprogramming, multitasking and multiprocessing.

17.1 What Is an Operating System?

An Operating System (OS) is the system software that manages the computer’s hardware and software and provides services to programs and users.

FigureWhere the Operating System Sits
  1. User
  2. Application softwareWord, Chrome, games
  3. Operating systemshell on top, kernel below — manages resources
  4. HardwareCPU, memory, disks, I/O devices

Examples: Windows, macOS, Linux (Ubuntu, Fedora), Android, iOS, Unix, Chrome OS, MS-DOS (historic).

17.2 Functions of an Operating System

P Process M Memory F File D Device S Security U User interface
PMF-DSU: six OS jobs Each letter is the first letter of one OS job: Process, Memory, File, Device, Security, User interface.
Function What the OS does
Process management Creates, schedules and ends processes; shares the CPU among them
Memory management Allocates and frees RAM; manages virtual memory
File management Creates, names, organises, reads, writes and deletes files and folders
Device (I/O) management Controls devices through drivers; handles buffering and spooling
Secondary storage management Manages disks and SSDs that the CPU cannot reach directly; handles free space and disk scheduling
Security and protection User accounts, passwords, permissions, firewall
User interface Provides CLI or GUI for interaction
Error detection Monitors and reports hardware/software errors
Resource allocation & accounting Shares CPU time, memory, printers among users; keeps usage records
Networking Connects to networks and shares resources

🧠 REMEMBER — “PMF-DSU”: Process, Memory, File, Device, Security, User interface — the six core OS jobs.

Protection and the Access Matrix

What the full chapter covers

The full chapter has these sections:

  1. 17.1 What Is an Operating System?
  2. 17.2 Functions of an Operating System
  3. 17.3 Kernel and Shell
  4. 17.4 User Interfaces
  5. 17.5 Types of Operating Systems
  6. 17.6 Processes
  7. 17.7 Other OS Terms
  8. 17.8 Power States and Window Arrangement
  9. 17.9 Page Replacement Algorithms
  10. 17.10 Events and Other OS Conditions
  11. 17.11 More Exam Facts
  12. Chapter Quick Revision
  13. Most Important Terms
  14. Common Confusions
  15. Rapid Recall

Sample questions from this chapter

1. Windows part that draws the desktop, taskbar and icons?

  1. Windows Registry
  2. Windows kernel
  3. Device driver
  4. Windows shell (explorer.exe)
Show answer

Answer: D. Windows shell (explorer.exe)

The Windows shell, explorer.exe, is the user-interface layer that shows the desktop, taskbar, Start menu and icons.

2. Privileged CPU mode used by the kernel?

  1. Normal Mode
  2. User mode
  3. Safe Mode
  4. Kernel mode
Show answer

Answer: D. Kernel mode

Kernel mode is the privileged CPU mode in which kernel code can access hardware directly.

3. State when a system stops responding to input?

  1. Troubleshooting
  2. Event
  3. Eject
  4. Hang
Show answer

Answer: D. Hang

Hang (freeze) means the system stops responding to input and often needs a restart.

4. Purpose of a Virtual File System layer?

  1. Compressing every file automatically
  2. One common interface to many file systems
  3. Encrypting the whole disk
  4. Converting all drives to NTFS
Show answer

Answer: B. One common interface to many file systems

A VFS layer hides the differences between file systems, so programs use one interface for all of them.

5. Time the CPU spends processing a job?

  1. Waiting time
  2. Response time
  3. Turnaround time
  4. Execution time
Show answer

Answer: D. Execution time

Execution (CPU) time is the CPU time a job actually uses; it is the same idea as burst time.