Questions tagged [starvation]

Starvation is the indefinite postponement of a process because it requires some resource before it can run, but the resource, though available for allocation, is never allocated to this process.

57 questions
1
vote
0 answers

RabbitMQ starvation w/ celery design flaw - how to solve?

We have a list of test stations that needs to be checked for data fetch with some interval (think each 10 minutes - but we can vary this within reasonable limits). The way this is done is through a celery setup that post tasks (one for each station)…
darune
  • 10,480
  • 2
  • 24
  • 62
1
vote
0 answers

Issue post running select query: java.lang.OutOfMemoryError: GC overhead limit exceeded

I'm facing GC overhead limit exceeded. I'm trying to run a heavy query(with multiple joins) and store the result in report. Below is the query: select o.ID_KEY as orderId, o.ORDER_NUMBER as orderNumber, a.ADL_ACCOUNT as adlAccount, o.BASL_ACCOUNT as…
tez
  • 119
  • 1
  • 1
  • 14
1
vote
0 answers

Java - how to avoid Thread Starvation when we have lots of threads

I would appreciate it if you could help me understand how one can approach multithreading and avoid starvation. I have an array of the same class, for instance, class Animal, which should walk, eat, speak, etc. I have thought of using every Class…
Gleb
  • 23
  • 4
1
vote
0 answers

Does pthread mutex guarantee starvation freedom?

Background I often stumble open cases where the order of lock acquisitions must be the same as real-time order of lock attempts. Those cases are usually about semaphore like locks. Theory From what I read in "The Art of Multiprocessor Programming",…
Incomputable
  • 2,188
  • 1
  • 20
  • 40
1
vote
1 answer

ring jetty adapter - limit concurrent requests

Question: How do you configure ring-jetty-adapter to limit the number of concurrent worker threads? I'm using embedded jetty here, not creating a WAR file or anything like that. Context I only have 20 connections in my database connection pool, and…
rutchkiwi
  • 427
  • 3
  • 14
1
vote
0 answers

Slurm jobs getting starved

So, I have an issue with my Slurm GPU queue that leads to a job starvation every now and then. Basically, I have many nodes with 1 GPU, 2 GPUs, 3 GPUs, and only 2 have 4 GPUs. The situation is as follows: User A submits a 4 GPU job Slurm assigns…
Ahmed Tawfik
  • 363
  • 4
  • 13
1
vote
1 answer

Thread Starvation vs Contention?

According to Oracle docs about "thread starvation", Starvation describes a situation where a thread is unable to gain regular access to shared resources and is unable to make progress. This happens when shared resources are made unavailable for…
1
vote
1 answer

Python concurrent.futures starvation

I'm using Python concurrent.futures, executes parent multi threads and each parent thread execute child threads. When ThreadPoolExecutor is less than number of required parent threads I got starvation and program stuck. What is the best approach…
Moshe Ronen
  • 35
  • 2
  • 7
1
vote
1 answer

Can someone help me to understand how Peterson's solution satisfy no-starvation, progress and mutual exclusive condition?

I am also confused about the while loop part, if the condition in the while is not true, then how it is going to get into CS? How does this Peterson's solution satisfy the conditions of Mutual exclusive, no-starvation and progress condition? Thank…
xxColderxx
  • 53
  • 6
1
vote
1 answer

Will a process experience starvation?

Consider and operating system with a non-preemptive SJF schedule. If it is given a workload of say 10 processes, and each process performs a CPU burst which ranges from 10ms to 20ms followed by a 500ms I/O burst, will any of the processes experience…
1
vote
1 answer

ScheduledExecutorService task that blocks for longer than its run interval

Question about ScheduledExecutorService.shceduleAtFixedRate - I schedule taskA to run every 500 millis, which blocks for 1000 millis. Now subsequent executions aren't gonna wait the extra 500 millis, but rather commence immediately after the…
EvenLisle
  • 4,672
  • 3
  • 24
  • 47
1
vote
3 answers

Lock retains way too long by a thread

I have an application in which several threads share a mutex. std::lock_guard< std::recursive_mutex > lock(globalMutex_); One intensively (T1) the others lesser (T2,T3..). I have an example in which the threads which require the lock less often get…
Guillaume Paris
  • 10,303
  • 14
  • 70
  • 145
1
vote
3 answers

How do you avoid interrupt starvation in a nested interrupt system?

I am learning about interrupts and couldn't understand what happens when there are too many interrupts to a point where the CPU can't process the foreground loop or complete the existing interrupts. I read through this article…
1
vote
1 answer

Why would this thread in my program be starving?

I've got a program that has about 80 threads. It's running on a ~50ish core machine on linux 3.36. At most there are 2 of these programs running at once, and they are identical. Nothing else is running on the machine. The threads themselves are…
rvishy1
  • 11
  • 2
1
vote
2 answers

Spring Scheduler synchronized method starvation

Assume I have a scheduler @Component public class Scheduler{ private static int counter = 0; private synchronized void countIt(){ counter++; } @Scheduled(fixedDelay = 3000) public void job1(){ countIt(); …
Roy
  • 65
  • 1
  • 7