Search:

Type: Posts; User: ShwangShwing

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    4,199

    Thanks guys. It turned out that the bug wasn't...

    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...
  2. Replies
    6
    Views
    4,199

    @grumpy: The problem here is, that I've followed...

    @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...
  3. Replies
    6
    Views
    4,199

    race condition detection tool

    I am searching for a tool that can detect race conditions. Does anybody use such a thing?
  4. Unfortunately none of these solutions sill work,...

    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...
  5. What should I do to reset a timer? For example I...

    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...
  6. Efficient timer mechanism for many timers

    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...
  7. Replies
    7
    Views
    8,083

    So... about the behaviour: if there are...

    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...
  8. Replies
    7
    Views
    8,083

    Thread safe double linked list

    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...
  9. Replies
    3
    Views
    2,481

    I use the posix standart. What is this library...

    I use the posix standart. What is this library with the events? I've never heard of it.
  10. Replies
    3
    Views
    2,481

    condition variable on read/write locks

    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...
  11. Multithreading (flag stopping a thread, ring buffer) volatile

    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...
Results 1 to 11 of 11