Operating Systems and Internetworking Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1

1/50

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering Operating Systems architectures, concurrency, memory management, file systems, IPC, and Internetworking protocols (IP, VLSM, RIP, OSPF, BGP, DHCP, DNS, security).

51 Terms

1
New cards

Operating System (OS)

System software that manages computer hardware resources, controls execution, arbitrates resource sharing among concurrent processes, protects data from unauthorized access, and provides common services for application programs.

2
New cards

Kernel Mode

A privileged CPU execution mode (governed by the Program Status Word) in which the operating system has complete control over the machine and can execute privileged instructions such as I/O commands (IN\text{IN}, OUT\text{OUT}) and interrupt handler definitions.

3
New cards

User Mode

An unprivileged CPU operational mode in which application-level programs run with restricted instruction access to prevent direct hardware manipulation and protect system stability.

4
New cards

Interrupt Handler

A specialized routine running in kernel mode that the CPU executes when an electrical or software interrupt signal is asserted, temporarily suspending the active program to service the event.

5
New cards

Process

An active program in execution comprising executable code (text section), global/static data (data section), dynamically allocated memory (heap), temporary function call storage (stack), a program counter, registers, and an isolated address space.

6
New cards

Process Control Block (PCB)

An operating system data structure maintained for every process that stores its complete execution state, including CPU registers, program counter, program status word, stack pointer, scheduling parameters, memory pointers, and I/O file descriptors.

7
New cards

Process States

The five lifecycle conditions of an operating system process: New (being created), Ready (waiting to be assigned to a CPU), Running (instructions currently executing), Blocked/Waiting (waiting for an event or I/O completion), and Terminated (execution finished).

<p>The five lifecycle conditions of an operating system process: New (being created), Ready (waiting to be assigned to a CPU), Running (instructions currently executing), Blocked/Waiting (waiting for an event or I/O completion), and Terminated (execution finished).</p>
8
New cards

Context Switching

The procedure performed by the dispatcher wherein the hardware registers and execution state of a running process are saved into its PCB, and the stored state of another scheduled process is loaded into the CPU to resume execution.

9
New cards

System Call

A programmatic request made by an application program to invoke privileged operating system services, implemented via a software trap or interrupt (such as INT SYSVEC\text{INT SYSVEC}) that transitions the CPU from user mode to kernel mode.

10
New cards

Thread

A sequential execution stream of instructions within a process that shares the address space, code, and global variables with peer threads, but maintains its own independent stack, program counter, and register set.

11
New cards

Race Condition

A non-deterministic situation where two or more threads compete to modify shared data simultaneously, producing corrupted structures or incorrect results that depend unpredictably on the exact execution ordering.

12
New cards

Critical Section

A code segment in a thread or process that accesses or updates shared resources (such as variables or files), which must not be executed concurrently by more than one thread at any given time.

13
New cards

Mutual Exclusion (ME)

A synchronization principle ensuring that when one thread or process is executing inside a critical section, all other threads are strictly excluded from entering their own critical sections on the same shared resource.

14
New cards

Peterson's Algorithm

A software-based mutual exclusion algorithm for two threads that guarantees both safety and progress without busy-wait deadlocks by combining shared interested Boolean flags and a turn variable yielded before entering the critical section.

15
New cards

Test and Set Lock (TSL)

A hardware-supported atomic instruction that reads the current value of a memory address into a register and writes a non-zero (true) value to it in a single, uninterruptible memory cycle.

16
New cards

Semaphore

A protected integer synchronization variable SS accessed only through two atomic operations: P(S)P(S) (decrement, which blocks the thread if S=0S=0) and V(S)V(S) (increment), with the invariant that SS never drops below zero.

17
New cards

Deadlock

A condition in concurrent computing where a set of processes or threads wait indefinitely for events that can never occur because every member of the set holds a resource and waits for another resource held by another member in the set.

18
New cards

Resource Allocation Graph

A directed graph consisting of process nodes (circles) and resource nodes (squares), where an edge from a resource to a process indicates an assignment and an edge from a process to a resource indicates a request; directed cycles in the graph indicate deadlock.

<p>A directed graph consisting of process nodes (circles) and resource nodes (squares), where an edge from a resource to a process indicates an assignment and an edge from a process to a resource indicates a request; directed cycles in the graph indicate deadlock.</p>
19
New cards

Banker's Algorithm

A classic deadlock avoidance algorithm designed by Dijkstra (1965) that simulates resource allocation against declared maximum needs to determine whether granting a request preserves a safe state.

20
New cards

Pipe (IPC)

A unidirectional, stream-oriented inter-process communication channel in UNIX systems connecting two processes via a bounded kernel buffer (typically 64 KB64\,\text{KB} in Linux) supporting standard read and write system calls.

<p>A unidirectional, stream-oriented inter-process communication channel in UNIX systems connecting two processes via a bounded kernel buffer (typically $$64\,\text{KB}$$ in Linux) supporting standard read and write system calls.</p>
21
New cards

Berkeley Sockets API

A standard inter-process communication interface enabling bidirectional, stream-oriented or datagram data transfers between unrelated processes across a local machine or a network using IP addresses and port numbers.

22
New cards

Remote Procedure Call (RPC)

A procedure-oriented distributed communication paradigm (introduced by Birrell and Nelson in 1984) providing access-transparent call semantics that make remote network function calls appear syntactically identical to local subroutine invocations.

23
New cards

File Allocation Table (FAT)

A file system architecture where file content is stored in clusters and contiguous or non-contiguous data locations are maintained via linked lists of cluster entries stored within a dedicated table in a reserved disk area.

24
New cards

Inode

A fixed-size (typically 128 byte128\,\text{byte}) metadata data structure in UNIX/Ext file systems identifying a file or directory, containing file attributes (size, permissions, timestamps) and direct/indirect pointers to physical storage blocks.

25
New cards

Master File Table (MFT)

The central metadata file in Microsoft's NTFS consisting of fixed-size 1 KB1\,\text{KB} records, where each record contains resident attributes (stored directly in the MFT) or pointers to non-resident cluster runs (stored outside the MFT).

<p>The central metadata file in Microsoft's NTFS consisting of fixed-size $$1\,\text{KB}$$ records, where each record contains resident attributes (stored directly in the MFT) or pointers to non-resident cluster runs (stored outside the MFT).</p>
26
New cards

Virtual Memory

A memory management architecture that grants each process an isolated virtual address space (e.g., 2322^{32} or 2642^{64} bytes), decoupling logical addresses used by programs from physical RAM addresses via address translation.

27
New cards

Memory Management Unit (MMU)

The CPU hardware component that translates virtual addresses generated by program code into physical memory addresses via page tables, raising a page fault exception if an accessed page is not resident in physical RAM.

<p>The CPU hardware component that translates virtual addresses generated by program code into physical memory addresses via page tables, raising a page fault exception if an accessed page is not resident in physical RAM.</p>
28
New cards

Page Fault

A CPU hardware exception generated by the MMU when an executing instruction references a virtual memory page whose present/absent bit in the page table is zero, prompting the OS to fetch the page from disk into a physical frame.

29
New cards

Translation Lookaside Buffer (TLB)

A high-speed, content-addressable associative hardware cache within the MMU that stores recently used virtual-to-physical address translations to accelerate memory lookups.

30
New cards

Instruction Set Architecture (ISA)

The abstract boundary and specification that defines the logical view of a CPU to machine code programmers and compilers, encompassing the supported instruction set, addressing modes, word length, and register sets.

31
New cards

RISC (Reduced Instruction Set Computer)

A processor architecture philosophy emphasizing simple, fixed-length instructions (e.g., 4 bytes4\,\text{bytes}), a uniform encoding, a large set of general-purpose registers (3232 registers in MIPS), and register-only arithmetic operations.

32
New cards

CISC (Complex Instruction Set Computer)

A processor architecture philosophy (exemplified by the x86 family) characterized by variable-length instructions, fewer general-purpose registers, complex addressing modes, and instructions that directly access and manipulate memory operands.

33
New cards

MIPS Instruction Formats

The three 32-bit instruction encodings in MIPS: R-format (register arithmetic: op, rs, rt, rd, shamt, funct), I-format (immediate/memory transfer/branch: op, rs, rt, immed), and J-format (unconditional jump: op, target address).

34
New cards

Instruction Pipelining

An instruction-level parallelism technique that breaks instruction execution into multiple sequential stages (typically IF, ID, EX, MEM, WB), executing different stages of multiple instructions concurrently across successive clock cycles.

35
New cards

Superscalar Processor

A processor architecture that dynamically schedules and issues multiple instructions per clock cycle to multiple redundant execution units (such as ALUs, FPUs, and load/store units) at execution time.

<p>A processor architecture that dynamically schedules and issues multiple instructions per clock cycle to multiple redundant execution units (such as ALUs, FPUs, and load/store units) at execution time.</p>
36
New cards

Multi-Core vs Many-Core Processors

Multi-core processors feature a small number (22 to 88, up to 6464) of powerful, complex cores sharing memory with high single-thread performance, whereas many-core processors (e.g., GPUs) feature hundreds or thousands of simpler, throughput-oriented cores often using distributed memory models.

37
New cards

Classful IP Addressing

An addressing scheme dividing the 32-bit IPv4 space into standardized classes: Class A (1.0.0.01.0.0.0–126.255.255.255126.255.255.255, /8/8), Class B (128.0.0.0128.0.0.0–191.255.255.255191.255.255.255, /16/16), Class C (192.0.0.0192.0.0.0–223.255.255.255223.255.255.255, /24/24), Class D (multicast: 224.0.0.0224.0.0.0–239.255.255.255239.255.255.255), and Class E (experimental: 240.0.0.0240.0.0.0–255.255.255.255255.255.255.255).

38
New cards

Usable Host Calculation (2n−22^n - 2 Rule)

The formula used to determine assignable IP addresses in a network with nn host bits, subtracting 2 because the all-zeros host ID denotes the network address and the all-ones host ID denotes the directed broadcast address.

39
New cards

Variable Length Subnet Mask (VLSM)

A classless subnetting approach that applies multiple subnet masks of varying lengths within the same network address space, breaking address blocks into custom sizes to match specific host requirements and prevent address waste.

40
New cards

Supernetting

The process of combining multiple contiguous, smaller network prefixes (such as Class C blocks) into a single larger route with a shorter mask to conserve address space and reduce routing table sizes.

41
New cards

Routing Information Protocol (RIP)

A distance-vector Interior Gateway Protocol based on the Bellman-Ford algorithm that uses hop count as its sole metric (maximum 15 hops; 16 indicates unreachable) and periodically broadcasts its entire routing table every 30 seconds.

42
New cards

Split Horizon

A distance-vector routing loop prevention rule stipulating that routing information about a network must never be advertised back out of the interface through which it was originally learned.

43
New cards

Route Poisoning

A loop-prevention technique in distance-vector protocols where a failed link or network is immediately advertised to neighbouring routers with an infinite metric (e.g., hop count 16 in RIP) to invalidate it.

44
New cards

Open Shortest Path First (OSPF)

A link-state Interior Gateway Protocol based on Dijkstra's Shortest Path First (SPF) algorithm that maintains a synchronized Link State Database (LSDB) through flooded Link State Advertisements (LSAs) and uses cost (derived from bandwidth) as its metric.

45
New cards

Link State Advertisement (LSA)

A routing update packet in OSPF containing router IDs, directly connected link states, and bandwidth costs, multicast to adjacent neighbours and flooded across an area to construct the LSDB topology map.

46
New cards

Border Gateway Protocol (BGP)

The standardized path-vector Exterior Gateway Protocol used to route data between Autonomous Systems across the Internet, exchanging network prefixes and AS-path attributes over TCP port 179 using deterministic routing policies.

47
New cards

Autonomous System (AS)

A collection of connected IP routing networks and devices controlled by a single administrative entity sharing a unified routing strategy, identified globally by an Autonomous System Number (ASN) assigned by IANA.

48
New cards

Dynamic Host Configuration Protocol (DHCP)

A client/server network service operating over UDP (server port 67, client port 68) that automatically assigns dynamic IP configuration parameters (IP address, subnet mask, default gateway, DNS server) to devices on a lease basis.

<p>A client/server network service operating over UDP (server port 67, client port 68) that automatically assigns dynamic IP configuration parameters (IP address, subnet mask, default gateway, DNS server) to devices on a lease basis.</p>
49
New cards

Domain Name System (DNS)

A hierarchical, globally distributed database protocol running on UDP/TCP port 53 that resolves human-readable domain names into numerical IP addresses.

50
New cards

CIA Triad

The core three-pillar security model consisting of Confidentiality (protecting data from unauthorized disclosure), Integrity (protecting data from unauthorized modification), and Availability (ensuring authorized users have timely access to resources).

<p>The core three-pillar security model consisting of Confidentiality (protecting data from unauthorized disclosure), Integrity (protecting data from unauthorized modification), and Availability (ensuring authorized users have timely access to resources).</p>
51
New cards

Routing Table Poisoning (RTP)

A network attack in which an unauthorized or rogue router is deployed to advertise false or corrupted routing updates, altering legitimate routing tables and redirecting or intercepting network traffic.