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
20
votes
2 answers

Detecting/Diagnosing Thread Starvation

I am doing some performance/scalability testing of an IIS application that occasionally seems to slow down to a crawl in production. I'm able to reproduce the slowness consistently using NUnit. CPU and Memory do not spike during the testing, or…
Phil Sandler
  • 27,544
  • 21
  • 86
  • 147
6
votes
2 answers

Is there a maximum number of CPU's that a VirtualBox could bare?

I am using VirtualBox 5.1 running in a host with 48 CPU's and 250GB of RAM the virtual machine that I am importing (the guest) initially had 2 CPU's and 4GB of RAM. Inside this machine I am running a process with Java that starts a dynamic number of…
5
votes
1 answer

Understanding BLOCKED_TIME in PerfView

We are suspecting that we're experciencing thread pool starvation on a server that is running a couple of ASP.NET Core APIs and a couple of .NET Core consoles. I ran perfview one one of our servers were we are suspecting problems with thread pool…
Joel
  • 8,502
  • 11
  • 66
  • 115
4
votes
0 answers

Starvation prevention in priority queue

As everyone knows, a priority queue can create starvation for lower priority items in its simplest form. For example, assume that we have following items in a priority queue in increasing priority order: Item Priority -------------------- Item A…
Afshin
  • 8,839
  • 1
  • 18
  • 53
4
votes
2 answers

How linux process scheduler prevents starvation of a process

I have read that linux kernel contains many schedule classes each having it's own priority. To select a new process to run, the process scheduler iterates from the highest priority class to lowest priority class. If a runnable process is found in a…
Shivam Mitra
  • 1,040
  • 3
  • 17
  • 33
3
votes
2 answers

Starvation in the dining philosopher problem

I've been looking at a solution for the dining philosopher problem on wikipedia. The resource hierarchy solution I understand how it works and how breaking the circular structure prevents deadlocks but how does the solution prevent starvation?…
3
votes
1 answer

What is Starvation scenario in Spark streaming?

In the famous word count example for spark streaming, the spark configuration object is initialized as follows: /* Create a local StreamingContext with two working thread and batch interval of 1 second. The master requires 2 cores to prevent from a…
3
votes
1 answer

How to let a writer thread starve

I've written an implementation of the reader-writers problem using shared_timed_mutex of C++14. In my opinion the following code should cause the Writer to starve since too many reader threads are working on the database (in this example a simple…
kimsay
  • 311
  • 3
  • 15
2
votes
0 answers

How is this One-Lane Bridge problem solution not starvation-free?

I have here a one-lane bridge problem solution. I was wondering how this solution is not starvation-free? The problem is that cars coming from the north and the south arrive at a one-lane bridge. Cars heading in the same direction can cross the…
2
votes
1 answer

Small pods starving big pods on an oversubscribed Kubernetes cluster

Our group has recently set up a 3-node Kubernetes cluster, and we've been using Jobs to schedule batch processing tasks on it. We have a lot of work to do and not a particularly large cluster to do it on, so at any given time there are a bunch of…
2
votes
1 answer

Starvation vs Convoy Effect

Is the only difference between starvation and convoy effect that convoy effect is mainly defined on FCFS scheduling algorithms and starvation is on priority based scheduling? I researched on both effects but couldn't find a comparison. This is based…
2
votes
1 answer

ignite: possible starvation in striped pool with igniteCache

there: I got the error when use ignite cache. My system select a master node use zookeeper,and has many slave nodes.The master process ignite cache expired values and put in an ignite queue.The slave node provide data into ignite cache use…
茅破天
  • 21
  • 1
  • 2
2
votes
0 answers

Heap_lock starvation in garbage collector

Garbage collector threads appear to get starved waiting for Heap_lock. Here is a stack trace of a GC thread + 5480 _pthread_start (in libsystem_pthread.dylib) + 168 [0x7fff9255191a] + 5480 _pthread_body (in libsystem_pthread.dylib) + 131 …
Greg
  • 21
  • 3
2
votes
0 answers

How does PHP flock prevent starvation?

I have a question regarding PHP flock() function: How PHP flock() can prevent starvation of a process? If there is a process R constantly wanting to read a file and a process W that wants to write in the file whenever reading is complete (wants an…
Long Le
  • 404
  • 5
  • 18
1
vote
1 answer

Sleep a thread to avoid thread starvation

I have a thread that's running in infinite loop executing some code, which will acquire a Lock. Meanwhile I have another thread doing scheduled task that also need to acquire the lock to do something. To ensure that the scheduled task won't be…
waynewingorc
  • 169
  • 9
1
2 3 4