1/10
A collection of flashcards covering key vocabulary and concepts from the lecture on threads, concurrency, and parallelism in operating systems.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Thread
A basic unit of CPU utilization that consists of a thread ID, a program counter, a register set, and a stack; threads can share code and resources within the same process.
Concurrency
The property of a system where two or more tasks can start, run, and complete in overlapping time periods.
Parallelism
The simultaneous execution of two or more tasks (multiple CPUs/cores) where tasks run at the same time.
Sequential Execution
A form of execution where one task must complete before another can begin, processing one at a time.
Multithreading
A programming paradigm that allows for the concurrent execution of more than one sequential set of instructions, or thread.
BLOCKED State
A state where a thread is waiting for a monitor lock and cannot proceed until it acquires the lock.
RUNNABLE State
A state in which a thread is currently executing on the CPU, having received processor time.
TIMED_WAITING State
A waiting state where a thread is waiting for another thread to perform an action for a specified time interval.
TERMINATED State
The state of a thread that has completed its execution successfully or has been terminated due to an error.
Java Thread Library
The API that provides the ability for Java programs to implement threads and manage their execution.
CPU Time Slicing
The operating system's method of sharing CPU time among multiple tasks to achieve concurrent execution.