busy-loop Questions
2
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 "busy" checking for the availability of a reso...
Kaveri asked 13/3, 2016 at 11:52
2
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 wonder what are the difference between using Sleep(...
Exaggerated asked 20/9, 2011 at 16:2
2
Solved
I'm using pretty standard Threading.Event:
Main thread gets to a point where its in a loop that runs:
event.wait(60)
The other blocks on a request until a reply is available and then initiates a...
Rew asked 14/3, 2012 at 19:41
6
Solved
What are some reasons why writing the following piece of code is considered bad practice?
while (someList.isEmpty()) {
try {
Thread.currentThread().sleep(100);
}
catch (Exception e) {}
}
//...
Nayarit asked 12/1, 2012 at 7:10
1
© 2022 - 2024 — McMap. All rights reserved.