-
Notifications
You must be signed in to change notification settings - Fork 0
Thread terminologies
Pranav V R edited this page Jun 23, 2024
·
1 revision
- Asynchronous
- Synchronous
- Thread safety
- Race condition
- Mutex (Mutual Exclution)
- Critical section
- Thread spawning
- Thread pool
- Daemon threads
- Thread starvation
- Deadlock
Asynchronous or concurrency means executing multiple things at a time but not necessarily simultaneously.
Synchrounous means executing one thing at a time.
In a multithreaded application, two or more threads may need to access a shared resource at the same time, resulting in unexpected behavior. This scenario is called as race condition.
The part of the program which access the shared resources is critical section.
Thread safety is that different threads can access same resoucres without producting un-expected results.
- Java Concepts
- Multithreading
- Java 8 Features