Concurrency - Starvation

Data System Architecture

About

Starvation is a forms of thread contention.

Starvation describes a situation where a thread is unable :

  • to gain regular access to shared resources
  • to make progress.

This happens when shared resources are made unavailable for long periods by “greedy” threads.

Example

Suppose:

If one thread invokes this method frequently, other threads that also need frequent synchronized access to the same object will often be blocked.

Documentation / Reference





Discover More
Data System Architecture
Concurrency - (Thread) Contention

Thread contention occurs when two or more threads try to access the same resource simultaneously and cause the runtime to execute one or more threads: more slowly, or even suspend their execution....
Data System Architecture
Concurrency - Liveness

A concurrent application's ability to execute in a timely manner is known as its liveness. . Java Tuto -...



Share this page:
Follow us:
Task Runner