BCS-111 Dashboard•Block 2 • Unit 2 (Theory + Lab)

🖥️ Operating System Fundamentals & Architecture

Simple English Mode Active: Beginner Friendly & Easy to Understand

The Operating System (OS) is the master software conductor of your computer. It connects you to the hardware, runs your apps, manages memory, keeps files organized, and prevents programs from crashing into each other.

1. The Big Picture: What Does an Operating System Do?

🍳 Analogy 1: The Restaurant Kitchen & Chef
  • • Kitchen Counter (RAM): Fast, open table space holding the active ingredients you are cooking right now.
  • • Storage Cupboard (SSD / Hard Drive): Huge pantry holding all raw food boxes (programs and files) for later.
  • • The Chef (CPU): The super-fast worker chopping, mixing, and executing instructions (+, -, math).
  • • The Manager (The OS): Decides which order gets cooked next, prevents kitchen fires, and makes sure no customer waits too long!
🚦 Analogy 2: The City Traffic Controller
  • • Road Intersections (System Bus): Shared highways where data travels between chips.
  • • Vehicles (Running Apps): Hundreds of apps trying to move through memory at the same time.
  • • Traffic Officer (The OS): Changes traffic lights, prevents traffic jams (deadlocks), and lets emergency ambulances (urgent hardware tasks) pass first!
The Two Golden Goals of Every Operating System:

1. Make it Easy (Convenience): Make complicated silicon chips and wires simple and comfortable for humans to use.

2. Make it Fast (Efficiency): Keep the CPU and RAM working at maximum speed without wasting power or sitting idle.

2. The 4 Layers of a Computer System

User Space ➔ Shell ➔ Kernel ➔ Hardware

Think of a computer as a 4-floor building. Everyday apps live on top, while physical chips sit in the basement. Apps cannot touch raw hardware directly; they must ask the Kernel nicely through safe requests (called System Calls).

4-Layer Operating System Architecture Diagram
Layer 1: User Apps (User Space)

Everyday software like Chrome, VS Code, Spotify, and Games that run in a safe zone so they cannot crash your PC.

Layer 2: The Shell & UI

The screen buttons, mouse menus (⊞ Windows GUI), or black command prompt window (CMD) where you give instructions.

Layer 3: The Kernel Core

The permanent heart of the OS living in RAM. It controls the CPU schedule, memory allocation, and disk storage.

Layer 4: Hardware Chips

The physical parts you can touch: Multi-core CPU chip, DDR5 RAM sticks, fast NVMe SSD, and network cards.

3. The 5 Life Stages of an App (Process Lifecycle)

Process Control Block (PCB)

A **Process** is simply a program that is currently running. When you launch an app, the OS moves it through 5 simple life stages so you can run many apps smoothly at once:

Process State Transition and CPU Scheduling Lifecycle Diagram
1. NEW 👶

You double-clicked an app icon. The computer is loading its code from the SSD.

2. READY 🏃

Loaded into RAM, waiting in line for its turn on the fast CPU.

3. RUNNING ⚡

The CPU chip is actively working on the app's instructions right now.

4. WAITING / BLOCKED 🛑

App paused while waiting for you to type on keyboard or save a file.

5. TERMINATED 🏁

You closed the app. The OS frees up its RAM so other apps can use it.

💡 Thread vs Process

A Process has its own memory house; Threads are helper workers sharing the same house!

4. Practice Lab: 🪟 Windows 11 Diagnostics Terminal

Live 1-to-1 PC Output Simulation

Click on any command tab below to see how real Windows administrators inspect the OS version, manage running memory, and check hard drive health:

C:\Users\Student>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
CMD.EXE
Administrator: ⊞ Windows 11 Command Prompt
100% Authentic PC Output
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.26100 N/A Build 26100
System Type:               x64-based PC
💡 Simple Explanation: This command reaches into the OS brain to show the exact Windows build number and confirm your PC uses a 64-bit multi-core chip.

5. How Operating Systems Evolved Over Time

Era / YearStage NameWhat Was New & GreatThe Big Problem
1940s - 1950sSerial ProcessingPlugboard wire switches and punched paper cardsOnly 1 user at a time; CPU sat doing nothing most of the day
1956 (IBM / GM)Simple Batch SystemsGrouped jobs together; a Monitor program ran cards one after anotherCPU still had to wait for slow card readers and magnetic tape
1964 (IBM OS/360)MultiprogrammingHeld multiple jobs in RAM; when one paused for printer, CPU switched to anotherUsers could not type or interact with their program in real time
1969 - 1973 (UNIX)Time-Sharing & C LanguageGave each user split-second turns on keyboard terminals; created the C languageHuge success! Enabled multi-user systems and internet servers
1981 - 1995 (PC Era)PC-DOS & ⊞ Windows GUIBrought mouse clicks, colorful windows, and personal computers to homes & desksMade computing easy for everyone in the world to use
Modern (2020s)🪟 Windows 11, Linux, Cloud64-bit multi-core speed, strong security, and cloud apps running everywhereSuper fast, runs millions of tasks at the speed of light

6. Quick Knowledge Check Quiz

Test What You Learned!

1What is the main brain/core of the Operating System that stays inside RAM from the moment the PC turns on?

2How does the computer let you listen to music, download files, and type in Word all at the exact same time?

3What happens to a program when it is waiting for you to type a key on the keyboard?

4What is the key difference between a Process and a Thread?

Unit 1: Computer Origin & Apps
Nextsem Academy • BCS-111 Master Curriculum
Created by Er. Manoj Kumar
Launch 12-Page Notes Suite