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
0
votes
1 answer

Avoiding starvation when attempting to use a many-to-many implementation

I am trying to grant access to a shared resource to two types of threads. It can be accessed by more than one threads, if, and only if, that thread is of the same type. Let us consider blacks & whites. When the resource is used by whites, it cannot…
CyberFox
  • 342
  • 3
  • 16
0
votes
1 answer

Thread priorities no effect

I'm writing a starvation simulation in Java. However, when I run it, it simply doesn't work almost any time. I'm working on MacOS. The code is like: public class StarvationNew { private static SharedObject sharedObject = new SharedObject(); // to…
TomKo1
  • 214
  • 2
  • 14
0
votes
0 answers

Java C3P0 Resource Starving

I have been looking at an issue where a main workflow table with a relevant dao (which is hit lots by multiple threads) is struggling to keep up with requests in a fair way - almost like resource starvation. The threads all are responsible for…
Biscuit128
  • 5,218
  • 22
  • 89
  • 149
0
votes
0 answers

Deadlock and starvation hypothetical scenario

Q - If a system was running low on memory, jobs are often moved to disk in Linux when the system considers memory to be low. (ie. swapped) Can an OS that behaves in this fashion have processes that deadlock with main memory contention? Could a…
Midge_Mong
  • 33
  • 2
  • 8
0
votes
2 answers

Guarantees about latency in node.js

Are there explicit considerations about the latency of any single request in the node.js event loop? AFAICT every IO call returns an eventEmitter which emits an event. The processing of all the events is multiplexed through the use of a pipe. So it…
Pushpendre
  • 795
  • 7
  • 19
0
votes
1 answer

Starvation of Akka actors who participate in a sequence process

Bisuness Logic We have the following business logic to accomplish: 1 million times do: download the file in index i unzip the file extract some info from the file delete the file Current Akka solution The Akka solution that we have at the moment…
t-rex-50
  • 201
  • 1
  • 4
  • 10
0
votes
0 answers

How to take down a rogue DHCP server (DoS)?

So for a project i'm trying to detect and mitigate rogue DHCP servers on networks. I had everything done, I created a script which would construct discovery packets (with Scapy), if more than one response is detected, I have another script which…
Ryan
  • 1
  • 2
0
votes
1 answer

Java ScheduledExecutorService - Preventing Starvation in Multiple Parallel Tasks

I'm working on a program that needs to inspect multiple resources in parallel and periodically: public class JobRunner { private final SensorService sensorService; private ScheduledExecutorService executor =…
sa125
  • 28,121
  • 38
  • 111
  • 153
0
votes
2 answers

How to prevent thread starvation

I am writing a zero-latency cloud gaming server. It's a software pipeline. In the first stage we capture the screen and in the second stage we encode it to the video. However after some amount of time the second stage freezes. I tried many…
Tim Hsu
  • 402
  • 5
  • 19
0
votes
1 answer

Thread safe switching of Linked-List nodes without locking the entire list

I'm learning about threads, locks etc. Therefore, I don't want to use synchronized key word or any class that is thread-safe other then semaphore and ReentrantLock (without Atomic variables). I want to have kind of synchronized LinkedList of…
moshem
  • 99
  • 1
  • 1
  • 9
0
votes
0 answers

Why is my goroutine starving?

Overview I am writing a program where a server is launched in one goroutine. The server has a few different goroutines: The main goroutine: This handles initialization, launches a second goroutine which listens for new connections (2), and then…
user3835277
-1
votes
1 answer

Is this an example of a livelock or deadlock or starvation?

Scheduling Scheme : Preemptive Priority Scheduling Situation : A process L (Low priority) acquires a spinlock on a resource (R). While still in the Critical Section, L gets preempted because of the arrival of another process - H (Higher Priority)…
1 2 3
4