System Software 500: Fundamentals, Architecture, and Administration of Operating Systems

Fundamentals of Operating Systems

  • Basic Computer Tasks:

    • Input: Data enters the computer through input devices (keyboards, mice, touchscreens, sensors) or storage media (disk drives, USB flash drives, SD cards).

    • Processing: The Central Processing Unit (CPU) interprets, calculates, and executes instructions by looking up hardware/software codes in memory tables provided by the operating system.

    • Output: The CPU transmits processed results to output hardware, such as rendering text/graphics via a graphics adapter onto a display monitor or printing to a printer.

    • Practical Example: When a user types the letter "A" in a word processor, the keyboard sends a specific scan code to the computer. The CPU looks up this code in an OS memory table, processes the character, and instructs the graphics card to render the character "A" on the screen.

  • Operating System Definition and Core Components:

    • An operating system (OS) is a foundational software suite that acts as an intermediary between application programs and computer hardware, enabling hardware sharing, resource abstraction, and multitasking.

    • User Interface (UI): Provides a human-computer interaction layer via Command-Line Interfaces (CLI) or Graphical User Interfaces (GUIs) using input devices.

    • Storage Management: Uses a file system to organize, store, retrieve, and control access to files across persistent storage media (hard disks, solid-state drives, USB flash drives, SD cards).

    • Process and Service Management: Manages processes (programs loaded into memory and executed by the CPU). A process running without a user interface in the background is termed a service in Windows or a daemon in Linux. The OS controls process initialization, execution scheduling, resource allocation, and termination.

    • Memory and I/O Management: Determines memory availability, allocates memory spaces for newly loaded applications, prevents overlapping memory access, and frees memory upon program termination. Manages Input/Output (I/O) hardware (such as USB ports and display adapters) to ensure non-conflicting, single-process access.

    • Security and Resource Protection: Enforces boundary protection between processes, preventing poorly written programs or malware from accessing unauthorized memory ranges or hardware. Provides access control lists (ACLs) to restrict file access and system configuration modifications.

    • The Kernel: The core engine of the OS running with the highest system priority. It directly schedules processes, performs memory allocation, controls I/O hardware, and handles security enforcement.


General Operating System Design
  • Evolution of Operating Systems:

    • 1950s Era: Room-sized automated calculators operating without operating systems. Early computers executed single-tasking, single-user routines. Programs contained custom hardware control logic, inputted via paper punch cards or magnetic tapes, with output sent to Teletype printers. The OS emerged to streamline complex hardware interaction logic for non-computer scientists.

    • Late 1960s to 1970s Era: Minicomputers and mainframes supported space exploration, ballistic missile systems, and global banking. Systems utilized kilobytes of RAM and megabytes of storage, giving rise to early global networks (the Internet). Introduction of Cathode Ray Tube (CRT) display terminals, magnetic tape drives, and magnetic disk media.

    • Timesharing and Multiuser Systems: Digital Equipment Corporation (DEC) introduced the PDP series running OS/8 (1968) on PDP-8 computers. Multics was developed as the first true multiuser, multitasking OS. In 1969, Kenneth Thompson and Dennis Ritchie at AT&T Bell Labs created UNIX based on Multics. DEC VAX systems later ran Virtual Memory System (VMS), while IBM mainframes utilized GM-NAA I/O, System/360, and CICS.

    • Programming Languages and Microcomputers: Dartmouth College created BASIC in the mid-1960s for non-programmers. In 1975, Bill Gates wrote a BASIC compiler for the Micro Instrumentation Telemetry Systems (MITS) Altair desktop computer, dropped out of Harvard, and co-founded Microsoft. Mainframe languages like FORTRAN, COBOL, Pascal, and C were adapted for microcomputers.

    • Microcomputer Revolution (Mid-1970s): Tim Paterson developed 86-DOS for the 8086 microprocessor. Microsoft licensed and adapted it for the IBM Personal Computer (PC) as MS-DOS (PC DOS), establishing a command-line standard that superseded Control Program/Monitor (CP/M).

    • GUI Development: Apple introduced the Macintosh in 1984 featuring a mouse, GUI, advance memory management, and built-in printer drivers. Microsoft released Windows in 1985 as a graphical shell operating on top of MS-DOS. Apple's decision not to license Mac OS to third-party hardware vendors allowed Microsoft Windows to dominate personal desktop computing.

  • Chronological Operating System Release History:

    • 1968: UNIX (Bell/AT&T) [8-bit] – First widely adopted multiuser, multitasking OS for minicomputers; DEC OS/8 released for PDP-8.

    • 1975: UNIX (Bell/AT&T) [8-bit] – Enabled business applications on small computers. CP/M achieved commercial success via the VisiCalc spreadsheet (1978).

    • 1980: MS-DOS [16-bit] – First OS for the IBM PC family. Lotus 1-2-3 (1981) and Microsoft Word for PC (1981) became flagship applications.

    • 1981: PC DOS [16-bit] – IBM's customized OEM release of MS-DOS.

    • 1984: Mac OS [16-bit] – First widely distributed graphical user interface OS; standardized mouse navigation.

    • 1987: Mac System Software 5 [16-bit] – Introduced cooperative multitasking.

    • 1988: Mac System Software 6 [16-bit] – Stabilized GUI architecture and added support for portable computers.

    • 1990: Windows 3.0 [16-bit] – First mainstream usable graphical environment for IBM-compatible PCs.

    • 1991: Linux 0.01 [16-bit] – Linus Torvalds released the initial Linux kernel open-source code via FTP.

    • 1991: Mac System Software 7 [32-bit] – Overhauled interface, expanding to 32-bit memory addressing.

    • 1992: MCC Interim Linux [16-bit] – First Linux distribution, created at the University of Manchester.

    • 1993: Windows for Workgroups 3.11 [16-bit] – Integrated native peer-to-peer networking into Windows 3.1.

    • 1993: Windows NT [32-bit] – Microsoft's first true 32-bit, preemptive multitasking OS featuring built-in networking (Workstation and Server editions).

    • 1994: Red Hat Linux, SUSE Linux, Linux Kernel 1.0 [16/32-bit] – Official commercial Linux kernel and major distribution releases.

    • 1995: Windows 95 [16/32-bit] – Hybrid OS providing native 32-bit app support, backward compatibility for 16-bit legacy code, Plug and Play hardware auto-detection, and desktop Start menu paradigm.

    • 1998: Windows 98 [32-bit] – Pure 32-bit upgrade featuring USB 1.0 support, driver updates, and system reliability tools.

    • 1999: GNOME 1.0 Desktop [16/32-bit] – Open-source desktop graphical environment for UNIX/Linux.

    • 2000: Windows 2000 [32-bit] – Major NT kernel update; featured double the line count of NT code, introducing Active Directory. Released in Professional, Server, Advanced Server, and Datacenter editions.

    • 2000: Windows Millennium Edition (Me) [32-bit] – Consumer-focused upgrade of Windows 98 with enhanced digital media capabilities.

    • 2001: Mac OS X [32-bit] – Overhauled Apple OS rebuilt on top of the UNIX-based Darwin core.

    • 2001: Linux Kernel 2.4 [32/64-bit] – Added native Plug and Play and USB device support.

    • 2001: Windows XP [32/64-bit] – Unified NT kernel stability with consumer media features. Released in Home (32-bit), Professional (32/64-bit), Tablet PC, and Media Center editions.

    • 2003: Windows Server 2003 [32/64-bit] – Enterprise server OS designed for Microsoft .NET infrastructure (Standard, Web, Enterprise, Datacenter).

    • 2003: Linux Kernel 2.6 [32/64-bit] – Added 64-bit CPU stability, support for massive file systems, and expanded process limits.

    • 2006: Windows Vista [32/64-bit] – Introduced User Account Control (UAC) security model (Home Basic, Home Premium, Business, Enterprise, Ultimate).

    • 2006: Windows Server 2003 R2 [32/64-bit] – Interim server release aligned with Windows Vista security and networking updates.

    • 2008: Windows Server 2008 [32/64-bit] – Modular server OS introducing Server Core, Hyper-V, and PowerShell.

    • 2009: Mac OS X Snow Leopard [32/64-bit] – Removed legacy PowerPC CPU architecture support, standardizing exclusively on Intel x86 processors.

    • 2009: Windows 7 [32/64-bit] – Desktop upgrade refining Vista's security model with performance improvements and the Aero interface.

    • 2009: Windows Server 2008 R2 [64-bit only] – Aligned with Windows 7; marked Microsoft's transition to exclusive 64-bit server development.

    • 2011: Mac OS X Lion [32/64-bit] – Introduced Launchpad application launcher.

    • 2011: Linux Kernel 3.x [32/64-bit] – Improved containerization support, automatic defragmentation, and hardware drivers.

    • 2012: Mac OS X Mountain Lion [64-bit] – Dropped 32-bit Intel CPU support; integrated Notification Center and iMessage.

    • 2012/2013: Windows 8 / 8.1 [32/64-bit] – Touch-optimized Start screen interface; Windows 8.1 reinstated desktop options and Start button features.

    • 2012/2013: Windows Server 2012 / R2 [64-bit only] – Overhauled Hyper-V virtualization engine and integrated cloud infrastructure tooling.

    • 2013: Mac OS X Mavericks [64-bit only] – Desktop OS update.

    • 2014: Mac OS X Yosemite [64-bit only] – Visual interface overhaul.

    • 2015: Linux Kernel 4.x [32/64-bit] – Added live kernel patching capability without system reboots.

    • 2015: Mac OS X El Capitan [64-bit only] – System stability and security enhancements.

    • 2015: Windows 10 [32/64-bit] – Unified operating system across desktops, laptops, and tablets; established semi-annual feature update model.

    • 2016: macOS Sierra [64-bit only] – Rebranded Mac OS X to macOS.

    • 2016: Windows Server 2016 [64-bit only] – Introduced Nano Server installation option and native Windows Server Containers.

    • 2017: macOS High Sierra [64-bit only] – Introduced Apple File System (APFS).

    • 2018: Windows Server 2019 [64-bit only] – Hyper-converged infrastructure (HCI) focus, Windows Admin Center, and Azure hybrid cloud integration.

    • 2018: macOS Mojave [64-bit only] – System update.

    • 2019: Linux Kernel 5.x [32/64-bit] – Added energy-aware CPU scheduling for mobile and embedded platforms.

    • 2019: macOS Catalina [64-bit only] – Removed support for 32-bit legacy applications.

  • Operating System Internal Architecture and Boot Sequence:

    • Boot Procedure (6 Sequential Steps):

    1. Electrical power is supplied to the CPU, motherboard, and peripheral hardware components.

    2. The CPU initializes its hardware registers and starts execution.

    3. The CPU executes firmware startup routines stored in non-volatile memory.

    4. Firmware performs diagnostic routines and locates the operating system bootloader.

    5. The bootloader loads the operating system kernel into Random Access Memory (RAM).

    6. Operating system kernel initializes drivers, loads critical services, and starts system processes.

    • Firmware Functions (BIOS and UEFI):

    • Stored in non-volatile memory chips (Flash memory on modern systems; EEPROM, EPROM, or ROM on legacy systems).

    • Executes Power-On Self-Test (POST) to diagnose system hardware (RAM, CPU, storage devices).

    • Initializes display, keyboard, and basic I/O controllers.

    • Configuration parameters are stored in CMOS memory, maintained by a small battery when main power is disconnected.

    • Locates and executes the initial bootloader program. In Windows, the bootloader is Boot Manager (BOOTMGR) for Vista and later, or NTLDR for legacy versions. In Linux, bootloaders include GRUB or LILO.


BIOS Setup Screen
  • Process and Service Management:

    • CPU Operational Modes:

    • Kernel Mode (Privileged Mode): Allows unrestricted access to system hardware, physical memory, and privileged CPU instructions (such as context switching, hardware interrupt configuration, timer controls, and I/O allocation).

    • User Mode: Restricts executing processes to an isolated, allocated memory space. Direct hardware access or privileged instructions are prohibited. Requests for I/O operations must be passed to kernel-mode drivers via system calls. Violation of memory boundaries triggers a processor exception that terminates the offending user-mode process.

    • Process Creation and Lifecycle:

    • Every running program assigned a unique Process ID (PID).

    • Processes require CPU time, memory, file handles (identifiers holding access information for files), and I/O privileges.

    • Four Process Creation Triggers:

      1. Bootloader initialization during system boot.

      2. Operating System Requests (e.g., Linux systemd or init creating user-mode process trees; Windows loading wininit, winlogon, lsass, and dwm).

      3. Parent Process Requests: A parent process forks/spawns a child process. Execution can occur concurrently (e.g., running gedit& in Linux command shell) or force the parent to wait until child termination.

      4. User Initialization: Double-clicking desktop icons or executing commands launches processes via explorer.exe in Windows or shell interfaces in Linux.


Task Manager Processes
  • Memory and I/O Handling:

    • Memory Management: Operating in kernel mode, the memory manager allocates virtual and physical memory blocks to processes, establishes address boundaries via CPU registers, and reclaims memory upon process termination.

    • Device Driver Abstraction: Device drivers act as translation layers between user applications and physical hardware. Drivers operate across split architecture: user-mode drivers handle high-level calls for device classes, while kernel-mode drivers directly execute hardware read/write operations.


Device Drivers Architecture
  • Polling vs. Interrupt-Driven I/O:

    • Polling: The OS continuously queries peripheral devices to check for data readiness. Inefficient for complex systems due to wasted CPU cycles.

    • Hardware Interrupts: Peripheral devices send electrical signals over Interrupt Request (IRQ) lines directly to dedicated CPU pins. The CPU halts current execution, identifies the interrupt source, and executes the appropriate Interrupt Service Routine (ISR) or interrupt handler.

    • Interrupt Masking: ISRs temporarily disable interrupts of equal or lower priority to ensure atomic execution of critical handlers. High-priority interrupts can pre-empt lower-priority routines.

    • Non-Maskable Interrupts (NMI): Critical hardware signals that cannot be turned off or masked, reserved for unrecoverable hardware events (RAM errors, parity failures, divide-by-zero errors).

    • Traps: Software-generated interrupts initiated by user-mode applications requiring immediate kernel-level processing.

    • Classification of Operating Systems:

  • Client OS: Designed for workstations and laptops. Optimized for user-interactive foreground applications, providing GUIs, desktop productivity suites, and client network components (Client for Microsoft Networks, DHCP clients, DNS resolvers, SAMBA, NFS).

  • Server OS: Designed for multi-user datacenters. Optimized for background network services (DNS, DHCP, Active Directory, Web, Virtualization). Built for fault tolerance (failover clustering), load balancing, hot swapping (replacing components like hard disks or RAM while powered on), and hot adding (scaling hardware resources dynamically without reboots). Often installed headless without GUIs (e.g., Windows Server Core, Linux CLI).

  • Standalone OS: Isolated computing systems operating without network connectivity (legacy systems, embedded traffic signals, standalone automotive controllers).

  • Multitasking Mechanisms:

    • Cooperative Multitasking: The running process controls the CPU until it voluntarily yields execution control. If an application hangs, the entire OS freezes (e.g., Windows 3.x, Mac System Software 5).

    • Preemptive Multitasking: The OS kernel uses timer interrupts to forcefully pre-empt running processes, reallocating predefined time slices based on process priority. Ensures system stability and prevents rogue processes from halting the machine.

  • Multi-User Systems: Allows multiple simultaneous users to execute independent processes, maintain distinct memory sessions, and interact with the OS environment (UNIX, Linux, Windows Server via Remote Desktop Protocol / RDP).

Popular Operating Systems

  • Microsoft MS-DOS Era (1981–1994):

    • MS-DOS 1.0 (1981): Initial single-tasking, text-based command-line OS developed for the 16-bit IBM PC (supporting 5.25-inch floppy disks).

    • MS-DOS 2.0 (1983): Added hard disk drive support (10 MB drives) and hierarchical directory trees.

    • MS-DOS 3.1 (1984): Introduced the network redirector, allowing remote network shares to be mapped as local drive letters.

    • MS-DOS 6.22 (1994): Final standalone release of MS-DOS prior to full integration into Windows 95.

  • Early Windows Shells:

    • Windows 1.0/2.0 (1985–1987): Operating environments running on top of MS-DOS rather than true standalone operating systems.

    • Windows 3.1 (1992): Introduced widespread GUI adoption on PCs, operating in 386 Enhanced Mode but relying on MS-DOS for core storage and I/O tasks.

    • Windows for Workgroups 3.11 (1993): Added native 32-bit network redirectors and peer-to-peer file/printer sharing.


Windows 3.11 GUI
  • Hybrid Desktop Evolution (Windows 95, 98, Me):

    • Windows 95: Hybrid 16-bit/32-bit architecture introducing the Start menu, Taskbar, and Desktop UI paradigm.

    • Plug and Play (PnP): Automatic software configuration and IRQ allocation for newly attached hardware devices.

    • Component Object Model (COM) and ActiveX: Object-oriented interaction standards across files, apps, and system components.

    • The Registry: Centralized hierarchical database replacing legacy .INI configuration files (WIN.INI, SYSTEM.INI), storing hardware configurations, system software parameters, device driver settings, and desktop profiles.

    • Preemptive Multitasking: Preemptive scheduling for 32-bit applications alongside cooperative multitasking for legacy 16-bit applications managed by a task supervisor.

    • Windows 98: Added Active Desktop, system registry repair tools, Advanced Configuration and Power Interface (ACPI), and native USB 1.0 support.

    • Windows Millennium Edition (Me): Targeted at consumer multimedia, introducing Universal Plug and Play (UPnP), but hampered by system instability.

  • Windows NT Architecture Branch:

    • Windows NT (New Technology): Built from the ground up as a pure 32-bit, multi-platform OS (x86, Alpha, PowerPC) featuring strict separation between kernel and user modes.

    • Network Security: C2 government security compliance rating, requiring local domain authentication (supporting TCP/IP, NetBEUI, IPX/SPX, AppleTalk).

    • Windows 2000: Rebuilt NT kernel delivering a 30% performance boost. Introduced core file protection, driver signing, Virtual Private Network (VPN) encapsulation, and Active Directory (AD).

    • Active Directory: Centralized directory database running on Domain Controllers (DCs) storing domain accounts, security policies, and resources organized into Organizational Units (OUs).

    • Kerberos Authentication: Default domain authentication protocol utilizing mutual authentication and encrypted tickets, eliminating plain-text password transmission over networks.


Active Directory on Windows 2000 Server
  • Desktop and Enterprise Convergence:

    • Windows XP (2001): Merged consumer UI stability with the NT kernel codebase. Included two-column Start menu, built-in Internet Connection Firewall, Remote Desktop, and mandatory Product Activation.

    • Windows XP Professional supported multi-user account switching and up to 10 concurrent peer network connections.

    • Windows Server 2003 / R2: Enterprise server platform supporting the Microsoft .NET initiative, high-memory configuration models, and IIS 6.0.

    • Windows 7 (2009): Addressed stability concerns of Windows Vista, delivering 33% faster performance, the Aero "Glass" interface, Windows Defender, User Account Control (UAC) refinements, and hard-coded kernel lockdown defenses.

    • Windows Server 2008 / R2: Introduced Server Core (a headless command-line interface), Hyper-V hypervisor virtualization, PowerShell scripting engine, Read-Only Domain Controllers (RODCs), and Self-Healing NTFS.


Windows Server 2008 Server Manager
  • Modern Desktop and Server Ecosystems:

    • Windows 8 / 8.1: Introduced the Metro touch interface, File Explorer ribbon, redesigned Task Manager, and the administrative shortcut menu (Win + X).

    • Windows Server 2012 / R2: Multi-server management console in Server Manager, Hyper-V 3.0, Active Directory Recycle Bin, and Minimal Server Interface (MinShell).

    • Windows 10 (2015): Shifted to an "Operating System as a Service" model with bi-annual feature updates (e.g., v1507, v1903, v1909).

    • Features: Virtual Desktops (Win + Ctrl + D), hybrid Start menu, Microsoft Edge, Cortana assistant, Universal Windows Platform (UWP) app model, Windows Hello biometric security, and Windows Sandbox (isolated containerized desktop environment).

    • Windows Server 2016: Introduced Nano Server (headless, remote-management-only footprint), nested Hyper-V virtualization, and native Docker-compatible Windows Server Containers.

    • Windows Server 2019: Integrated Windows Admin Center (WAC) web management console, Windows Defender Advanced Threat Protection (ATP) Exploit Guard, Storage Migration Services, and Windows Subsystem for Linux (WSL).


Windows Admin Center

The Central Processing Unit (CPU)

  • CPU Fundamentals and System Architecture:

    • System Architecture: Comprises the CPU, internal/external buses, physical RAM, and storage controllers.

    • Single-Processor vs. Multiprocessor vs. Multicore:

    • Single-Processor: Contains a single physical CPU socket on the motherboard.

    • Multiprocessor: Motherboard contains multiple physical CPU sockets (ranging from 2 to 128+ physical sockets).

    • Multicore: A single physical CPU die contains multiple independent processing cores (ranging from dual-core/quad-core up to 72 cores in Intel Xeon Phi processors).

    • Silicon Die Manufacturing: CPUs are etched onto silicon wafers. A single 20 mm×20 mm20\text{ mm} \times 20\text{ mm} die can contain over 2,027,000,0002{,}027{,}000{,}000 transistors.


Intel Core i7 Processor Die
  • CPU Startup Execution (The Reset Vector):

    • Upon receiving initial electrical power or a hardware reset signal, the CPU reads binary instructions from a hard-coded non-volatile memory address called the Reset Vector.

    • On x86 processors, the reset vector points to hexadecimal address FFFF0; on ARM and Atmel architectures, it points to address 0.

    • The reset vector contains a instruction that loads the bootloader code address into the CPU's Program Counter register.

  • Internal Architecture of the CPU:

    • Control Unit (CU): Decodes machine instructions, manages instruction pipelining, and generates internal synchronization signals for the ALU, registers, and system buses.

    • Arithmetic Logic Unit (ALU): Executes binary arithmetic operations (integer addition, subtraction, multiplication) and logical operations (AND, OR, XOR, bit-shifts). Includes a Floating-Point Unit (FPU) for real-number calculations.

    • Registers: High-speed internal memory cells used for temporary instruction and data staging:

    • Program Counter (PC): Holds the memory address of the next instruction to execute.

    • Instruction Register (IR): Holds the binary instruction currently being decoded.

    • Address / Data Registers: Store memory addresses and active operands being calculated by the ALU.

    • Memory / Cache Controller: Intercepts memory access requests, routing queries to internal SRAM cache or external RAM.

    • System Bus Architecture:

    • Control Bus: Bi-directional signal lines transmitting system status commands, read/write strobes, and hardware IRQs.

    • Address Bus: Unidirectional bus specifying physical source and destination RAM memory addresses.

    • Data Bus: Bi-directional pathway transferring actual raw data words between CPU registers, RAM, and I/O devices.


Basic Architecture of a CPU
  • Bus Calculations and Memory Addressing Formulas:

    • Address Bus Capacity Formula: An nn-bit address bus can directly reference 2n2^n bytes of memory:

    • 16-bit Address Bus: 216=65,536 bytes=64 KB2^{16} = 65{,}536\text{ bytes} = 64\text{ KB}

    • 32-bit Address Bus: 232=4,294,967,296 bytes≈4 GB2^{32} = 4{,}294{,}967{,}296\text{ bytes} \approx 4\text{ GB}

    • 64-bit Address Bus: 264=18,446,744,073,709,551,616 bytes≈16 Exabytes2^{64} = 18{,}446{,}744{,}073{,}709{,}551{,}616\text{ bytes} \approx 16\text{ Exabytes} (Current hardware physical implementations address up to 16 Terabytes / 16 TB).

    • Data Bus Bandwidth Formula: Throughput equals external clock frequency multiplied by data bus bit-width:

    • For a CPU operating on a 1 GHz1\text{ GHz} (109 cycles/sec10^9\text{ cycles/sec}) external bus with a 16-bit (2 bytes2\text{ bytes}) data bus:       Theoretical Throughput=109 cycles/sec×2 bytes=2×109 bytes/sec=2 GB/s\text{Theoretical Throughput} = 10^9\text{ cycles/sec} \times 2\text{ bytes} = 2\times 10^9\text{ bytes/sec} = 2\text{ GB/s}

  • Clock Speeds and Cache Memory Hierarchies:

    • Clock Speeds:

    • Internal Clock Speed: Internal frequency at which the CPU core executes instructions (measured in MHz or GHz, e.g., 3.0 GHz to 5.0 GHz).

    • External Clock Speed (Bus Speed): Lower operating frequency used to communicate across the motherboard system bus (typically 1/2, 1/3, 1/4, or 1/8 of internal core clock speed).

    • Cache Memory Levels:

    • Level 1 (L1) Cache: Ultra-fast SRAM integrated directly into each processor core running at full internal CPU speed (typically 32 KB to 64 KB per core).

    • Level 2 (L2) Cache: Fast SRAM dedicated to individual cores (typically 256 KB to 1 MB per core).

    • Level 3 (L3) Cache: Large shared cache pool accessible by all cores on the die (typically 4 MB to 77 MB+).

    • Level 4 (L4) Cache: High-capacity off-die or embedded DRAM cache located on the motherboard.

    • Cache Hit Rate: Advanced cache controllers achieve up to a 95% cache hit rate, predicting memory access patterns to prevent CPU idle wait-states.

  • Intel Processor Evolution and Specifications:

    • Standard x86 Architecture: Traceable to the 16-bit 8086 processor (introduced in 1978 operating at 16 MHz with a 16-bit data bus). Mainstream desktop 64-bit architecture is designated as x86-64 / x64.

    • Bus Speeds: Measured in Gigatransfers per second (GT/s).

    • Client Processor Specifications:

    • Intel Core i3 (2010): 2 Cores | 1.20–3.06 GHz | 2.5 GT/s Bus | 3–4 MB L3 Cache | Comparable to AMD Ryzen 3

    • Intel Core i5 (2009): 2–4 Cores | 1.06–3.76 GHz | 2.5 GT/s Bus | 3–8 MB L3 Cache | Comparable to AMD Ryzen 5

    • Intel Core i7 (2008): 2–6 Cores | 1.06–3.33 GHz | 2.5–4.8 GT/s Bus | 4–15 MB L3 Cache | Comparable to AMD Ryzen 7

    • Intel Core i9 (2017): 10–18 Cores | 2.6–4.0 GHz | 8.0 GT/s Bus | 13–25 MB L3 Cache | Comparable to AMD Ryzen 9

Installing and Upgrading Operating Systems

  • Preinstallation Planning and System Verification:

    • Clean Installation vs. In-Place Upgrade:

    • Clean Installation: Formats target storage partitions, installing a fresh OS copy without preserving legacy files or applications.

    • In-Place Upgrade: Overwrites core system files while migrating existing user settings, installed applications, and personal data.

    • Hardware Verification Checklist:

    • Minimum Hardware Requirements: CPU architecture (x86 vs. x64 vs. ARM), CPU clock frequency, physical RAM, and free persistent disk space.

    • Storage Controllers: Verify disk controller compatibility (SATA, SAS, NVMe). Specialized RAID controllers require custom third-party drivers provided during setup via the "Load driver" command.

    • Installation Media: Prepare bootable optical media (DVDs), bootable USB flash drives (formatted via utilities like Rufus), or raw ISO image files for hypervisors.

  • Installing Client Operating Systems (Windows 10 Setup):

    • Windows 10 Clean Installation Steps:

    1. Boot host hardware or Virtual Machine from installation media (ISO/USB).

    2. Configure initial locale preferences: Language, Time/Currency format, and Keyboard layout.

    3. Select "Install Now" and choose target edition (Home, Pro, Enterprise, Education).

    4. Accept licensing terms and select "Custom: Install Windows only (advanced)".

    5. Partition Selection: Setup configures necessary partition structures:

      • Recovery Partition (~500 MB): Contains system diagnostic/repair recovery tooling.

      • System / EFI Partition: Stores UEFI/BIOS bootloader parameters.

      • Primary C: Partition: Formatted in NTFS to hold system binaries, program files, and user profiles.

    6. Out-Of-Box Experience (OOBE):

      • Configure region and keyboard input layouts.

      • Create initial local administrator account (Domain Join model) or authenticate via Microsoft Online Account.

      • Configure security challenge questions for password reset recovery.

      • Configure digital assistant (Cortana) and granular telemetry/privacy toggles.


Specifying Installation Disk Partition
  • Windows 10 In-Place Upgrade Paths:

    • Windows 7 Starter / Home Basic / Home Premium →\rightarrow Windows 10 Home

    • Windows 7 Professional / Ultimate →\rightarrow Windows 10 Pro

    • Windows 8 / 8.1 Core →\rightarrow Windows 10 Home

    • Windows 8 / 8.1 Pro / Pro Student →\rightarrow Windows 10 Pro

    • Architectural Matching Constraint: 32-bit installations must upgrade to 32-bit Windows 10; 64-bit installations must upgrade to 64-bit Windows 10.

    • Windows Server Installation and Deployment:

  • Minimum Server Hardware Requirements: 64-bit 1.4 GHz CPU, 512 MB RAM (Server Core) or 2 GB RAM (Desktop Experience), 32 GB free disk space.

  • Installation Types:

    • Server Core: Default lightweight installation option omitting the graphical user interface. Uses fewer hardware resources, requires fewer updates, and presents a minimized attack surface.

    • Desktop Experience: Standard Windows Server deployment including the complete graphical interface.


Choosing Server Installation Type
  • Server Edition Differentiation:

    • Datacenter Edition: Includes full server features, advanced software-defined networking, Storage Spaces Direct, and unlimited Hyper-V virtual machine instances.

    • Standard Edition: Same core performance limits as Datacenter (up to 24 TB RAM, 64 physical sockets, 64-node clusters), but restricted to 2 virtual machine instances per license.

    • Essentials Edition: Designed for small organizations (up to 25 users / 50 devices), supporting up to 2 physical CPUs and 64 GB RAM.

  • Mandatory Post-Installation Server Tasks:

    1. Activate Windows Server license within the 10-day evaluation window (unactivated servers reboot hourly).

    2. Set accurate System Time, Date, and Time Zone (critical for domain Kerberos authentication ticket validation).

    3. Assign Static IPv4/IPv6 Addresses, Gateway, and primary DNS server parameters.

    4. Rename Computer Hostname (1 to 15 characters complying with RFC DNS host naming standards).

    5. Configure Windows Update policies.

    • Multi-Platform Update Mechanisms:

  • Windows Update: Configured via Settings or Server Manager. Server environments prioritize manual or scheduled update installations to prevent unexpected reboots.

  • Linux Patching (Fedora / GNOME): Managed via GNOME Software updates UI or CLI tools:

    • Command: dnf install dnf-automatic

    • Edit schedule parameters in /etc/dnf/automatic.conf

    • Enable execution timers: systemctl enable --now dnf-automatic-install.timer

  • macOS Updates: Managed via System Preferences →\rightarrow Software Update or Mac App Store.

Devices and Device Drivers

  • I/O Communication Flow and Device Controllers:

    • Communication Flow Paradigm: User Application →\rightarrow Operating System Call →\rightarrow Device Driver Translation →\rightarrow I/O Controller →\rightarrow Physical Hardware Device.


Application Writing to Disk Drive
  • Hardware Component Layers:

    • I/O Controller: Physical circuit processing high-level hardware commands.

    • Control Register: Receives execution commands (e.g., read, write, reset) passed from the driver.

    • Data Register(s): Temporary buffer holding binary data during transfer ops.

    • Status Register: Indicates hardware state flags (e.g., ready, busy, error, buffer-full).

  • Transfer Strategies:

    • Programmed I/O (PIO): CPU manually reads and writes every individual byte to device registers. High CPU overhead.

    • Direct Memory Access (DMA): Dedicated DMA controller transfers whole blocks of data directly between peripheral hardware and system RAM without CPU intervention.

  • Categorization of Devices:

    • Access Mode: Random Access (disks, SSDs, flash memory) vs. Sequential Access (magnetic tape drives).

    • Transfer Unit: Character Special / Stream (keyboards, mice, serial ports) vs. Block Special / Transfer (hard drives, optical storage).

    • Device Driver Functionality:

  • Keeps the OS kernel lean by abstracting hardware-specific instruction sets into standard system calls.

  • Enables dynamic hardware expansion without requiring OS kernel re-compilation.

  • Vendor drivers vs. Generic OS drivers: Manufacturer drivers exploit unique hardware features, provide bug fixes, and deliver superior performance optimization.

    • Device Installation and Management in Windows:

  • Installation Modalities: Plug and Play (PnP) automatic detection, Vendor Setup Executables (setup.exe), Add a Device Wizard, or Device Manager.

  • Device Manager Management Tools:

    • Inspect device operational state, driver version, and driver binary file locations.

    • Resolve IRQ line and I/O address range conflicts (PCI Express Message Signaled Interrupts [MSI] eliminate legacy hardware IRQ conflicts).

    • Update Driver: Scans local storage or Windows Update for updated driver packages.

    • Roll Back Driver: Uninstalls an updated driver, restoring the previously functioning driver version.

  • Driver Signing Security:

    • Microsoft digitally signs verified device drivers using cryptographic certificates.

    • Prevents installation of altered, unstable, or malware-infected driver files.

    • Signature enforcement can be overridden per-boot via Advanced Startup Options ("Disable driver signature enforcement").


Device Driver Properties
  • Printing Architecture and Management:

    • Terminology:

    • Print Device: The physical printing hardware mechanism.

    • Printer: The logical software interface/icon inside the OS.

    • Print Server: The computer system or embedded network print card hosting shared printers.

    • Print Queue: Disk spool storage location holding pending print jobs (C:\Windows\System32\Spool\Printers).

    • Advanced Print Server Features:

    • Printer Pooling: Links a single logical printer interface to multiple identical physical print devices, distributing print jobs to available hardware.

    • Printer Priority: Maps multiple logical printers with varying priority levels to a single physical print device.

    • Client-Side Rendering: Offloads print job formatting calculations to client workstations ("Render print jobs on client computers").

Account and Resource Management

  • Network File Sharing Protocols:

    • Server Message Block (SMB): Native Windows network file/printer sharing protocol supported across Linux (via SAMBA) and macOS.

    • Network File System (NFS): Native Linux/UNIX file sharing protocol supported by Windows Enterprise/Server releases.

    • Windows Sharing Architecture: Requires Client for Microsoft Networks (client-side redirector) and File and Printer Sharing for Microsoft Networks (server-side service).

  • Windows Folder Sharing Methods:

    • File Sharing Wizard: Basic folder sharing via context menu ("Give access to" →\rightarrow Specific people).

    • Shared Folders Snap-in (fsmgmt.msc): Component of Computer Management console (compmgmt.msc) providing central oversight of Active Shares, Sessions, and Open Files.

    • Advanced Sharing Dialog Box:

    • Share Name: The network identifier used in UNC paths (\\server-name\sharename).

    • User Limits: Restricts concurrent connection counts (maximum 20 simultaneous users on client OSs; up to 16,777,216 on Server OSs).

    • Caching: Configures offline file availability.

    • Share Permissions: Grants Read, Change, or Full Control network access levels.


Advanced Sharing Dialog Box
  • Shared Resource Access Mechanisms:

    • The Redirector: Intercepts application file I/O requests, routing local requests to internal disk controllers and network requests across the network card.

    • Universal Naming Convention (UNC) Path: Standardized network resource syntax:

    • Windows Syntax: \\server-name\sharename\subfolder\file.ext

    • Linux/macOS Syntax: smb://server-name/sharename/subfolder/file.ext

    • Drive Mapping: Assigns an unused local drive letter (e.g., X:) to a remote UNC path:

    • Command Prompt Syntax: net use X: \\server-name\sharename

    • Automated Drive Mapping: Executed via batch scripts (.bat / .cmd) or Active Directory Group Policy logon scripts.

  • User and Group Account Administration:

    • Account Core Functions:

    • Authentication: Verification of identity credentials (username/password, smart cards, biometrics).

    • Authorization: Verifying permissions to resources and system rights.

    • Active Directory User Account Management (dsa.msc):

    • Default Accounts: Administrator (full control) and Guest (disabled by default).

    • Account Options:

      • User must change password at next logon.

      • User cannot change password.

      • Password never expires.

      • Account is disabled.

    • Active Directory Group Scopes:

    • Domain Local Group: Used to assign resource access permissions within the local domain. Can contain accounts, global groups, and universal groups from any domain.

    • Global Group: Used to group domain accounts sharing similar operational roles. Can be assigned resource permissions across any domain in the forest.

    • Universal Group: Forest-wide group scope holding users/groups from any domain, usable for permissions across the entire forest.


Creating a Group in Active Directory
  • Windows Special Identity Groups (Dynamic Membership):

    • Authenticated Users: Includes any account currently signed in with valid credentials (excludes Guest).

    • Creator Owner: Dynamically assigned to the user who created a specific file or folder.

    • Everyone: Includes all network and local accounts accessing the resource (including Guest).

    • Interactive: Includes users signed in locally at the physical console or via Remote Desktop.

    • Network: Includes users accessing resources across the network.

    • System: Represents the operating system kernel and local core services.

    • Resource Security and Permission Evaluation:

  • Principle of Least Privilege: Users should be granted only the minimum level of access necessary to perform their assigned job functions.

  • Share Permissions vs. File/Folder (NTFS) Permissions:

    • Share Permissions: Apply exclusively to users accessing shared folders across the network. Configurable on FAT, FAT32, NTFS, and ReFS volumes (Levels: Read, Change, Full Control).

    • NTFS / ReFS Permissions: Apply to both local (interactive) and network access. Configurable at both folder and individual file levels (Basic Levels: Read, Read & execute, List folder contents, Write, Modify, Full control).

  • Effective Permissions Combination Rules:

    1. Combining NTFS Permissions: NTFS permissions are cumulative. If a user receives Read permission directly and belongs to a group with Write permission, the cumulative interactive permission is Read + Write.

    2. Explicit Deny Rule: An explicit Deny permission overrides any allowed permissions.

    3. Network Access Combined Evaluation Rule: When accessing resources over the network, Windows evaluates Share Permissions and NTFS Permissions independently, applying the MOST RESTRICTIVE permission level between the two!


File and Folder Basic Permissions
  • Permission Evaluation Examples:

    • Scenario A: Share Permission = Read | NTFS Permission = Modify →\rightarrow Effective Network Permission = Read (Most Restrictive)

    • Scenario B: Share Permission = Full Control | NTFS Permission = Read & Execute →\rightarrow Effective Network Permission = Read & Execute (Most Restrictive)

    • Scenario C: Share Permission = Change | NTFS Permission = Full Control (Explicit Deny Write) →\rightarrow Effective Network Permission = Read Only / Deny Write (Explicit Deny overrides)