Concurrency and Thread Management

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

1/19

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts in concurrency, threading, synchronization, and their management.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Concurrency

Multiple things happening at once and using the same resource.

2
New cards

Threads

Units of execution within an application that share the same address space but have their own program counters and stack.

3
New cards

Thread Control Block

Data structure containing the saved state of a thread.

4
New cards

Thread Local Storage

Storage where each thread contains its own stack.

5
New cards

Race Condition

Condition that occurs when multiple threads access shared data simultaneously, leading to indeterminate results.

6
New cards

Critical Section

Section of code that can lead to a race condition if accessed by multiple threads.

7
New cards

Mutual Exclusion

Property ensuring that if one thread is executing in a critical section, no other thread can enter.

8
New cards

Atomicity

Property whereby operations cannot be interrupted mid-execution; they are completed entirely or not at all.

9
New cards

Synchronization Primitives

Basic tools provided by the OS or hardware to ensure correct execution of concurrent programs.

10
New cards

Semaphore

Synchronization primitive used to control access to a shared resource using an integer counter.

11
New cards

Producer/Consumer Problem

Problem involving producers creating data and consumers taking that data from a limited-capacity buffer.

12
New cards

Condition Variables

Synchronization primitive allowing threads to wait for conditions to change.

13
New cards

Yielding

A thread voluntarily relinquishing control so that other threads can run.

14
New cards

Sleeping

An operation where a thread goes to sleep until it's explicitly awakened by another thread.

15
New cards

Write-back Caching

Cache write strategy where updates only write to the cache and write to main memory when the cache line is flushed.

16
New cards

Deadlock

Situation where threads are stuck waiting for resources held by one another and none can proceed.

17
New cards

Event-based Concurrency

Concurrency model where tasks are handled through events and callbacks instead of separate threads.

18
New cards

Continuation

A data structure that stores the state of a computation, allowing it to resume after an event.

19
New cards

Explicit Blocking

When a thread intentionally waits for a resource or condition.

20
New cards

Implicit Blocking

Unexpected delays in the program caused by hardware delays or resource unavailability.