Threads and Concurrency

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

1/19

flashcard set

Earn XP

Description and Tags

These flashcards cover essential vocabulary related to threads and concurrency, providing definitions for key terms discussed in the lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Concurrency

The ability of a system to handle multiple tasks simultaneously.

2
New cards

Thread

An execution flow within a process that can run concurrently with other threads.

3
New cards

Process

An instance of a program that is being executed, which may contain multiple threads.

4
New cards

Context Switching

The process of saving the state of a currently running process and loading the state of another process.

5
New cards

Kernel Level Threads (KLT)

Threads that are managed by the operating system's kernel.

6
New cards

User Level Threads (ULT)

Threads that are managed by user-level libraries without kernel involvement.

7
New cards

Thread Control Block (TCB)

Data structure in the kernel that stores information about a thread.

8
New cards

Shared Memory

An IPC mechanism where multiple processes can access the same memory space.

9
New cards

Fork

A system call used to create a new process by duplicating an existing one.

10
New cards

Exec

A system call that replaces the current process image with a new process image.

11
New cards

Thread-Local Storage (TLS)

A mechanism by which each thread can have its own separate copy of certain data.

12
New cards

Thread Pool

A collection of pre-initialized worker threads that can perform tasks efficiently.

13
New cards

Grand Central Dispatch (GCD)

Apple’s implementation of thread pools to manage concurrent operations.

14
New cards

Signal Handling

The process of managing signals, which are notifications sent to a process to indicate an event.

15
New cards

Thread Cancellation

The process of terminating a thread that is no longer needed.

16
New cards

Asynchronous Cancellation

A method where a thread is immediately canceled without any conditions.

17
New cards

Deferred Cancellation

A method where a thread is notified to cancel itself, which allows for safe resource management.

18
New cards

Many-to-Many Threading

A hybrid threading model where multiple user-level threads are mapped to multiple kernel-level threads.

19
New cards

One-to-One Threading

A threading model where each user thread corresponds directly to a kernel thread.

20
New cards

Many-to-One Threading

A threading model where many user threads are managed by a single kernel thread.