I'm new to Erlang and have a question about the receive block. I'm trying to receive one or more message(s) from a child process that is performing a ...
I'm new to Erlang and have a question about the receive block. I'm trying to receive one or more message(s) from a child process that is performing a ...
I need to wait in my program for a subsystem. In different places a have to wait for different conditions. I know I could also make use of threads and ...
I am trying to write my first Linux application using Qt Creator. Sometimes, during debugging, I am writing code that causes my application to go in s ...
Are spin waits, spin loop and busy spin a different name for the same situation? I read different threads and they all seem related to a loop that is ...
I am doing simulation project where i have hundred of CPU-Bound jobs running for 10 to 50 milliseconds. The Job is a Runnable object with specified ru ...
I want a busy wait loop for a specific amount of time and I tested the following java code, which gives different outputs on different runs (sometimes ...
I am new to ZeroMQ, I have seen a few examples, seems always involves the listener to do busy loop to receive the message, for example, in the pub/sub ...
I am implementing some asio operations using boost, I've encountered an interface problem, whom which I am not receiving 'handlers' in initialization, ...
I'm using pretty standard Threading.Event: Main thread gets to a point where its in a loop that runs: The other blocks on a request until a reply i ...
What are some reasons why writing the following piece of code is considered bad practice? To me, picking an arbitrary value to sleep is not good pr ...
I would like to wait on an event in my app which supposed to happen immediately, so I don't want to put my thread on wait and wake it up later. I wond ...
Why does a busy loop often uses 100% of the cpu time while loops that implement complex algorithms would use much much less? thanks :) ...
I looking for a way how to get rid of busy waiting in host thread in fallowing code (do not copy that code, it only shows an idea of my problem, it ha ...
I'm using prettify by Google. How to fix? ...
I have an app it sets up a FileSystemWatcher. It should run indefinitely. What is the best way to have it run in an idle loop? I'm currently doing ...