Thanks guys. It turned out that the bug wasn't race condition. It was an algorithm error that appeared randomly in specific situations when the network delivered very few bytes. usleep probbably...
Type: Posts; User: ShwangShwing
Thanks guys. It turned out that the bug wasn't race condition. It was an algorithm error that appeared randomly in specific situations when the network delivered very few bytes. usleep probbably...
@grumpy: The problem here is, that I've followed the safest multithreading route - no shared variables (or at least I think so, I checked several times). But the situations at which the problems...
I am searching for a tool that can detect race conditions. Does anybody use such a thing?
Unfortunately none of these solutions sill work, because when the timer must be reset very often. Every time a timer is reset it will mark the time the tarmer is restarted calling gettimeofday. Most...
What should I do to reset a timer? For example I have a timer that checks if data (specific data) has arrived. This data arrives many times a second normally. However I need to know when this data...
Hello,
I have a program that generally makes around 100+ connections, every data that arrives in these connection is somehow analyzed. For the analyzing I need around 4 timers in these connecitons...
So... about the behaviour:
if there are iterators on an element that I want to delete there will be two variants of delete function: the first will block until the element is not pointed by enyone...
I nead a linked list, that can be safely accessed by more then one threads. I want to be able to add, delete and move elements in the list. I also want to be able to have something like objects that...
I use the posix standart. What is this library with the events? I've never heard of it.
Hello. I have the following problem: I have one writter and many readers. The writter writes in a buffer and the readers read from this buffer. It's not classicle producer/consumers, because all the...
Hello. I was reading a lot about the volatile keyword lately in the net and the oppinions are very contradicting.
I am using pthreads. I know that I am supposed to use mutexes to avoid problems with...