OS

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

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:46 PM on 10/8/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

33 Terms

1
New cards

Program Counter

A CPU register that holds the memory address of the next instruction to be executed by the processor.

2
New cards

Stack Pointer

A CPU register that points to the top of the current process's stack in memory.

3
New cards

PSW/FLAGS Register

contains critical status information about the processor's current state.

4
New cards

Pseudoparallelism

The illusion that multiple processes execute simultaneously on a single CPU, created by rapid process switching.

5
New cards

Multiprogramming

A technique where multiple programs reside in memory simultaneously, allowing the CPU to switch between them.

6
New cards

Copy-on-Write

An optimization technique where a parent and child process share the same physical memory pages until a write operation occurs.

7
New cards

Context Switch

The process where the CPU stops running one process and saves its state to load another process's saved state.

8
New cards

Critical Region

a segment of code that accesses shared resources and must be executed atomically (as a single, indivisible unit) to prevent data inconsistencies and race condition

9
New cards

Mutual Exclusion

The property that prevents multiple processes from executing critical regions at the same time that access shared resources.

10
New cards

Race Conditions

Situations where the system's behavior depends on the timing of processes, leading to unpredictable results.

11
New cards

Spin Lock

A synchronization mechanism where a process checks a lock variable in a loop until it acquires the lock.

12
New cards

Semaphore

A synchronization primitive that uses a counter to control access to shared resources.

13
New cards

Thread

The smallest unit of execution within a process that can run independently.

14
New cards

Process

The operating system's abstraction of a running program, encompassing its code, data, and execution state.

15
New cards

Kernel

The core component of an operating system with complete control over system resources and operations.

16
New cards

Process Table (proctab) in Xinu

An array where indexes correspond to process IDs, maintaining process state and information.

17
New cards

State Transition

A change in a process's state, governed by specific rules and requiring updates to system data structures.

18
New cards

Quantum

The maximum time a process can run before being preempted to ensure fair CPU scheduling.

19
New cards

Atomic Action

An operation that executes as a single, indivisible unit, ensuring consistency in concurrent systems.

20
New cards

Non-blocking Message Reception

A message reception method that allows a process to return immediately if no messages are available.

21
New cards

Blocking Message Reception

A message reception method where a process waits (blocks) until a message becomes available.

22
New cards

Fork() function

Creates a nearly identical copy of the calling process, resulting in a parent and child process.

23
New cards

Semaphore Wait Operation

Decrements a semaphore's count, potentially blocking the process if resources are not available.

24
New cards

Semaphore Signal Operation

Increments a semaphore's count, potentially waking a waiting process if resources become available.

25
New cards

Ready List

A data structure that contains all processes ready to execute on the CPU.

26
New cards

Sleep Queue Invariant

A process is on the sleep queue if and only if its state is set to blocked with sleep-related status.

27
New cards

Currpid Invariant

A process's PID is stored in this only if its state is set to running.

28
New cards

Race Condition Debugging Difficulty

Race conditions are challenging to debug due to their non-deterministic timing, leading to inconsistent behavior.

29
New cards

Message Passing

A communication method where processes send and receive messages to exchange data.

30
New cards

Priority-based Scheduling

A scheduling method where the highest-priority READY process is selected for execution.

31
New cards

Process Hierarchy

The parent-child relationships between processes, significant for resource management and cleanup.

32
New cards

Preemption

The process of temporarily halting the execution of a currently running process to allow a higher priority process to run.

33
New cards

Why maintain invariants atomically?

To prevent inconsistencies during state transitions, ensuring correctness in process management.