CONCURRENCY (Java)

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:06 PM on 3/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards
Concurrency
The ability of a system to execute multiple threads or processes at the same time
2
New cards
Multithreading
A technique where a program contains two or more parts that run concurrently
3
New cards
Thread
The smallest unit of execution that can be scheduled by the operating system
4
New cards
Process
A group of associated threads executed in the same shared environment
5
New cards
Single-threaded process
A process that contains only one thread
6
New cards
Multithreaded process
A process that contains multiple threads running concurrently
7
New cards
Shared environment
A setup where threads share the same memory space and can communicate directly
8
New cards
Thread scheduler
A component of the OS that decides which thread runs at a given time
9
New cards
Context switch
The process of saving a thread’s state and restoring it later to continue execution
10
New cards
Main thread
The initial thread created by the Java Virtual Machine that runs the main() method
11
New cards
start() method
A method that starts a thread and calls its run() method
12
New cards
run() method
The method that contains the code executed by a thread
13
New cards
Extending Thread class
A way to create a thread by inheriting from the Thread class and overriding run()
14
New cards
Runnable interface
A way to create a thread by implementing the Runnable interface and defining run()
15
New cards
Thread object
A Java object used to control and manage a thread
16
New cards
setName()
A method used to assign a name to a thread
17
New cards
getName()
A method used to retrieve the name of a thread
18
New cards
setPriority()
A method used to assign a priority level to a thread
19
New cards
getPriority()
A method used to retrieve a thread’s priority
20
New cards
Thread priority
A numeric value that influences the order in which threads are scheduled
21
New cards
MIN_PRIORITY
The lowest thread priority value which is 1
22
New cards
MAX_PRIORITY
The highest thread priority value which is 10
23
New cards
NORM_PRIORITY
The default thread priority value which is 5
24
New cards
isAlive()
A method that checks if a thread is still running
25
New cards
join()
A method that pauses the current thread until another thread finishes execution
26
New cards
sleep()
A method that temporarily suspends a thread for a specified time
27
New cards
Thread.currentThread()
A method that returns the currently executing thread object
28
New cards
Parallel execution
Running multiple parts of a program simultaneously on different CPUs
29
New cards
Thread communication
Interaction between threads sharing the same memory space
30
New cards
CPU scheduling
The process of determining which thread or process gets CPU time
31
New cards
Thread lifecycle
The stages a thread goes through from creation to termination
32
New cards
Thread interruption
A mechanism where one thread can influence or stop another thread