CS 442 Operating Systems UW Stout Alnaeli Midterm 2

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:34 PM on 4/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

64 Terms

1
New cards

Memory Management

The OS function responsible for tracking memory usage, allocating memory to processes, and deallocating it when finished. It ensures efficient use of memory and protection between processes. /n/n

2
New cards

Swapping

A memory management technique where a process is temporarily moved from main memory to disk (backing store) and later brought back for execution, enabling more processes than physical memory allows. /n/n

3
New cards

Base and Limit Registers

Hardware registers used for dynamic relocation and protection. The base register holds the starting physical address, and the limit register defines the size of the address space; every memory access is checked against them. /n/n

4
New cards

Fixed Partitioning

Memory is divided into fixed-size partitions at system startup. Each process is loaded into a partition. Simple but leads to internal fragmentation and limited number of processes. /n/n

5
New cards

Dynamic Partitioning

Memory is allocated dynamically based on process size. Eliminates internal fragmentation but introduces external fragmentation and may require compaction. /n/n

6
New cards

Internal Fragmentation

Wasted space inside an allocated memory block when the allocated partition is larger than the process needs. /n/n

7
New cards

External Fragmentation

Free memory exists but is scattered in small non-contiguous blocks, making allocation difficult. /n/n

8
New cards

Compaction

A technique to reduce external fragmentation by moving processes so that free memory becomes contiguous. /n/n

9
New cards

First-Fit Algorithm

Allocates the first memory block large enough for the request. Fast and simple but can create large holes. /n/n

10
New cards

Best-Fit Algorithm

Allocates the smallest block that fits the request. Minimizes wasted space but creates many small unusable holes and is slower. /n/n

11
New cards

Next-Fit Algorithm

Similar to first-fit but continues searching from the last allocated position. /n/n

12
New cards

Worst-Fit Algorithm

Allocates the largest available block to leave large leftover holes. Generally inefficient in practice. /n/n

13
New cards

Logical Address

An address generated by the CPU that is independent of the actual physical memory location. /n/n

14
New cards

Physical Address

The real address in main memory where data resides. /n/n

15
New cards

Address Translation

The process of converting a logical address into a physical address using hardware like the MMU. /n/n

16
New cards

MMU (Memory Management Unit)

Hardware that performs runtime address translation from logical to physical addresses. /n/n

17
New cards

Paging

Memory management scheme where memory is divided into fixed-size frames and processes into pages. Pages can be loaded into any frame, eliminating external fragmentation. /n/n

18
New cards

Page Table

A data structure maintained by the OS that maps logical page numbers to physical frame numbers. /n/n

19
New cards

Page Fault

Occurs when a process tries to access a page not currently in memory, triggering OS intervention. /n/n

20
New cards

Virtual Memory

Technique allowing execution of processes without requiring all pages to be in memory, using disk as an extension of RAM. /n/n

21
New cards

Working Set

The set of pages a process is actively using. Helps determine how many frames a process needs. /n/n

22
New cards

Thrashing

A condition where excessive paging occurs, causing the system to spend more time swapping than executing processes. /n/n

23
New cards

TLB (Translation Lookaside Buffer)

A fast cache that stores recent page table entries to speed up address translation. /n/n

24
New cards

Page Replacement Algorithms

Strategies used to decide which page to remove when memory is full. /n/n

25
New cards

Optimal Page Replacement

Replaces the page that will not be used for the longest time in the future. Gives best performance but not implementable in practice. /n/n

26
New cards

LRU (Least Recently Used)

Replaces the page that has not been used for the longest time in the past. /n/n

27
New cards

FCFS Page Replacement

Replaces the oldest loaded page (First-In-First-Out). Simple but can perform poorly (Belady's anomaly). /n/n

28
New cards

Buffer Overflow

A vulnerability where a program writes more data than allocated memory, potentially overwriting adjacent memory and causing security issues. /n/n

29
New cards

Unsafe Functions

Functions like gets() or strcpy() that do not check bounds and can lead to buffer overflow vulnerabilities. /n/n

30
New cards

CPU Scheduling

The process of selecting which process gets CPU time next in a multiprogramming system. /n/n

31
New cards

Scheduler

OS component responsible for selecting the next process to execute. /n/n

32
New cards

Dispatcher

Module that switches context, transfers CPU control to selected process, and switches to user mode. /n/n

33
New cards

Dispatch Latency

Time required to stop one process and start another. /n/n

34
New cards

Preemptive Scheduling

The OS can interrupt a running process to switch to another. /n/n

35
New cards

Non-Preemptive Scheduling

A running process keeps the CPU until it finishes or blocks. /n/n

36
New cards

CPU Utilization

Percentage of time CPU is actively working; should be maximized. /n/n

37
New cards

Throughput

Number of processes completed per unit time; should be maximized. /n/n

38
New cards

Turnaround Time

Total time from submission to completion of a process; should be minimized. /n/n

39
New cards

Waiting Time

Total time a process spends waiting in the ready queue. /n/n

40
New cards

Response Time

Time from request submission to first response (important in interactive systems). /n/n

41
New cards

FCFS Scheduling

Non-preemptive algorithm where processes are executed in arrival order. Simple but causes convoy effect. /n/n

42
New cards

Convoy Effect

Long process delays many short processes in FCFS scheduling. /n/n

43
New cards

SJF (Shortest Job First)

Non-preemptive algorithm that runs the process with the shortest CPU burst. Optimal for minimizing waiting time. /n/n

44
New cards

SRT (Shortest Remaining Time)

Preemptive version of SJF that switches when a shorter job arrives. /n/n

45
New cards

Round Robin (RR)

Preemptive scheduling with fixed time slices (quantum). Ensures fairness and responsiveness. /n/n

46
New cards

Priority Scheduling

Processes are scheduled based on priority. Can cause starvation of low-priority processes. /n/n

47
New cards

Multilevel Queue Scheduling

Processes are divided into different queues based on type, each with its own scheduling algorithm. /n/n

48
New cards

Multilevel Feedback Queue

Processes can move between queues based on behavior and CPU usage, improving flexibility and fairness. /n/n

49
New cards

CPU-bound Process

A process that spends most time performing computations. /n/n

50
New cards

I/O-bound Process

A process that spends most time waiting for I/O operations. /n/n

51
New cards

Short-term Scheduler

Selects which process in the ready queue gets CPU next. /n/n

52
New cards

Long-term Scheduler

Decides which processes are admitted into the system. /n/n

53
New cards

Medium-term Scheduler

Handles swapping decisions (suspending/resuming processes). /n/n

54
New cards

Thread

The smallest unit of execution within a process, sharing memory but having its own registers and stack. /n/n

55
New cards

Multithreading

The ability of a process to execute multiple threads concurrently. /n/n

56
New cards

User-Level Threads

Threads managed by user libraries without kernel awareness. Fast but limited by blocking system calls. /n/n

57
New cards

Kernel-Level Threads

Threads managed by the OS kernel. More flexible but slower due to system calls. /n/n

58
New cards

Advantages of Multithreading

Improved responsiveness, resource sharing, and better CPU utilization. /n/n

59
New cards

Disadvantages of Multithreading

Complexity, synchronization issues, race conditions, and debugging difficulty. /n/n

60
New cards

Race Condition

Occurs when multiple threads access shared data concurrently and results depend on execution order. /n/n

61
New cards

Thread Synchronization

Techniques (mutex, locks, semaphores) used to control access to shared resources. /n/n

62
New cards

Refactoring Sequential to Multithreaded

Splitting a single-threaded task into multiple threads to run concurrently for performance improvement. /n/n

63
New cards

Thread Bugs

Common issues include race conditions, deadlocks, and improper synchronization. /n/n

64
New cards

Deadlock

A situation where threads are stuck waiting for each other indefinitely. /n/n

Explore top notes

note
Chapter 7: Cultural Comparisons
Updated 1093d ago
0.0(0)
note
Mitosis
Updated 757d ago
0.0(0)
note
ap review in 15 mins
Updated 573d ago
0.0(0)
note
2.2 Healthcare
Updated 1163d ago
0.0(0)
note
Unit 6 - Molecular Genetics
Updated 1089d ago
0.0(0)
note
3.1: race intro notes
Updated 1215d ago
0.0(0)
note
Animal Farm: Education
Updated 1438d ago
0.0(0)
note
Chapter 7: Cultural Comparisons
Updated 1093d ago
0.0(0)
note
Mitosis
Updated 757d ago
0.0(0)
note
ap review in 15 mins
Updated 573d ago
0.0(0)
note
2.2 Healthcare
Updated 1163d ago
0.0(0)
note
Unit 6 - Molecular Genetics
Updated 1089d ago
0.0(0)
note
3.1: race intro notes
Updated 1215d ago
0.0(0)
note
Animal Farm: Education
Updated 1438d ago
0.0(0)

Explore top flashcards

flashcards
Spanish Chapter 15 Vocab
91
Updated 1154d ago
0.0(0)
flashcards
Business HL
319
Updated 1073d ago
0.0(0)
flashcards
Genetics Exam 2
65
Updated 1244d ago
0.0(0)
flashcards
Stress, Coping, and Health
31
Updated 375d ago
0.0(0)
flashcards
ECE 124 Final Exam
53
Updated 720d ago
0.0(0)
flashcards
Intro
28
Updated 586d ago
0.0(0)
flashcards
Spanish Chapter 15 Vocab
91
Updated 1154d ago
0.0(0)
flashcards
Business HL
319
Updated 1073d ago
0.0(0)
flashcards
Genetics Exam 2
65
Updated 1244d ago
0.0(0)
flashcards
Stress, Coping, and Health
31
Updated 375d ago
0.0(0)
flashcards
ECE 124 Final Exam
53
Updated 720d ago
0.0(0)
flashcards
Intro
28
Updated 586d ago
0.0(0)