Operating Systems Exam 2 Study Guide

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts related to concurrency, threads, and operating systems.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

Concurrency

Multiple tasks making progress during overlapping time periods.

2
New cards

Threads vs Processes

Threads share memory and resources; switching between them is faster than between processes.

3
New cards

Thread Control Block (TCB)

Holds the state of a thread: ID, registers, priority, etc.

4
New cards

Thread Local Storage

Memory each thread uses independently of others.

5
New cards

Thread States

Running, Ready, Waiting/Blocked, Terminated.

6
New cards

Race Condition

When multiple threads access shared data and the result depends on timing.

7
New cards

Determinism

Consistent results that do not depend on timing.

8
New cards

Indeterminism

Results depend on timing.

9
New cards

Thread Trace

A log of the actions taken by a thread during execution.

10
New cards

Critical Section

A block of code that accesses shared resources.

11
New cards

Mutual Exclusion

Ensures one thread in the critical section at a time.

12
New cards

Atomicity

An operation that is all or nothing; it can't be interrupted.

13
New cards

Synchronization Primitives

Tools like locks, semaphores, and condition variables to manage thread timing.

14
New cards

Lock States

Available (unlocked), Acquired (locked).

15
New cards

Tickets Lock

A fair spinlock that lets threads take a number.

16
New cards

Yielding

A thread voluntarily gives up the CPU to others.

17
New cards

Sleeping in Threads

Thread pauses without using CPU until woken.

18
New cards

Cache Coherence Problem

Multiple cores have stale versions of shared data in cache.

19
New cards

Write-through Caching

Writes go to cache and main memory.

20
New cards

Write-back Caching

Writes stay in cache; memory updated later.

21
New cards

System Bus

The communication backbone connecting CPU, RAM, and peripherals.

22
New cards

Approximate Counters

Local counters per core, merged occasionally to a global one.

23
New cards

Granularity of Locks

Coarse locks are simple but slow; fine locks are complex but faster.