Systems Programming & OS Internals

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

flashcard set

Earn XP

Description and Tags

Operating system processes, memory, and hardware

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

27 Terms

1
New cards

System Call

function that requests a service from the operating system kernel (e.g., read(), write() )

2
New cards

User Mode

restricted mode where normal programs run (limited hardware access)

3
New cards

Kernel Mode

privileged mode with full hardware access; OS code runs here

4
New cards

Interrupt

hardware or software signal that temporarily halts CPU execution to handle an event

5
New cards

Trap/Exception

software-generated interrupt (e.g., divide-by-zero)

6
New cards

Context Switch

OS operation that saves on process’s state and loads another’s

7
New cards

Process

running instance of a program with its own memory space and resources

8
New cards

Thread

lightweight process sharing memory and resources with other threads of the same process

9
New cards

Scheduler

OS component that decides which process/thread runs next on CPU

10
New cards

Kernel

core component of OS managing processes, memory, devices, and system calls

11
New cards

System Library (libc)

provides user-space wrappers for system calls and utilities

12
New cards

Virtual Memory

abstraction where each process sees a continuous memory space mapped to physical memory via page tables

13
New cards

Physical Memory

actual RAM in hardware

14
New cards

Paging

dividing virtual memory into fixed-size blocks mapped to frames in physical memory

15
New cards

Page Table

structure mapping virtual addresses to physical ones

16
New cards

MMU (Memory Management Unit)

hardware that handles virtual-to-physical address translation

17
New cards

Segmentation

older memory model dividing memory into segments (code, data, stack)

18
New cards

Heap

memory for dynamically allocated data (malloc/free in C)

19
New cards

Stack (Memory)

area for function calls and local variables; automatically managed by CPU

20
New cards

Buffer/Buffer Overflow

continuous memory region; overflow occurs when data exceeds buffer capacity and overwrites adjacent memory

21
New cards

Race Condition

when program behavior depends on timing/order of concurrent operations

22
New cards

Critical Section

code segment where shared resources are accessed; must not be executed by multiple threads simultaneously

23
New cards

Mutex (Mutual Exclusion Lock)

synchronization primitive allowing only one thread at a time in a critical section

24
New cards

Semaphore

counter-based synchronization for controlling access to a limited number of resources

25
New cards

Deadlock

situation where threads wait indefinitely for each other to release resources

26
New cards

Context Switching

saving/restoring CPU registers and state when switching between threads/processes

27
New cards

Atomic Operation

an operation that cannot be interrupted (appears indivisible)