Skip to content

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 Concurrent

Asynchronous or concurrency means executing multiple things at a time but not necessarily simultaneously.

Synchronous

Synchrounous means executing one thing at a time.

Race condition

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.

Critical section

The part of the program which access the shared resources is critical section.

Thread safety

Thread safety is that different threads can access same resoucres without producting un-expected results.

Clone this wiki locally