Threads and Concurrency - CSB 340 Lecture Notes

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

1/18

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to threads, concurrency, and parallelism as discussed in the CSB 340 operating systems lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Concurrency

Dealing with lots of things at once, allocating time slices to processes.

2
New cards

Parallelism

Doing lots of things at once by executing them simultaneously on multiple CPUs.

3
New cards

Process Control Block (PCB)

A data structure in the operating system that holds information about a process.

4
New cards

Time Slice

The amount of time allocated for a process to use the CPU.

5
New cards

Thread

The basic unit of CPU utilization that comprises a process.

6
New cards

Thread ID

A unique identifier for a thread within a process.

7
New cards

Kernel Structures

Data structures used by the OS that store information about threads and processes.

8
New cards

Fork vs Clone

Methods used in Unix-like systems for creating processes; 'fork' creates a new process while 'clone' can share resources.

9
New cards

Weak Isolation

A characteristic of threads where they share memory and state, potentially leading to bugs.

10
New cards

Strong Isolation

A characteristic of processes where each process has its own memory space, preventing interference.

11
New cards

Thread Pools

A design pattern for managing multiple threads efficiently without the overhead of creating and destroying threads.

12
New cards

Amdahl's Law

A formula to find the maximum improvement of a system based on the portion of the system that can benefit from parallelization.

13
New cards

Pthreads

POSIX standard for thread management in Unix-like operating systems.

14
New cards

Asynchronous Cancellation

A method of terminating a thread immediately regardless of its current state.

15
New cards

Deferred Cancellation

Allows a thread to periodically check for a cancellation request before terminating.

16
New cards

Thread-Local Storage (TLS)

A method that gives each thread its own copy of 'global' data.

17
New cards

Signal Handling

The process of managing signals sent to processes, indicating events like interrupts.

18
New cards

IPC (Inter-Process Communication)

Mechanisms provided by the OS that allow processes to communicate with each other.

19
New cards

Synchronous vs Asynchronous

Synchronous operations wait for a task to be completed, while asynchronous operations proceed without waiting.