pthreads
Better to lock on a shared resource, or have a thread to fulfill requests?
I have a shared memory pool from which many different threads may request an allocation. Requesting an allocation from this will occur a LOT in every thread, however the amount of thr开发者_开发问答ea[详细]
2023-03-26 18:37 分类:问答pthread_mutex_lock error
#include \"MutexCondition.h\" bool MutexCondition::init(){ printf(\"MutexCondition::init called\\n\"); pthread_mutex_init(&m_mut, NULL);[详细]
2023-03-26 09:24 分类:问答How to utilize a thread pool with pthreads?
I have a queue of jobs and I want to make a pool of four threads where I can throw my jobs at. What I am stuck at is in 开发者_如何学Gohow to make the threads and keep them suspended while there is no[详细]
2023-03-26 07:08 分类:问答C Parallel Garbage Collector, how to avoid locking out main thread
I a开发者_如何转开发m developing a parallel garbage collector. It is a tri-marking collector that does the usual white->grey->black. When the collector moves an object from grey to black it descends i[详细]
2023-03-26 02:44 分类:问答Pthread: Does starting location makes a difference
A simple question. Does it make any difference if one pthread starts multiple sub开发者_高级运维-pthreads? rather than all of them started from the main ?[详细]
2023-03-25 20:02 分类:问答Interrupting syscalls in threads on linux
I have a pthread that runs in a loop, calling accept() in a blocking manner. Is there any way to interrupt that call from another thread? Everything points to sending the thread a signal, but apparent[详细]
2023-03-25 19:18 分类:问答Can a correct fail-safe process-shared barrier be implemented on Linux?
In a past question, I asked about implementing pthread barriers without destruction races: How can barriers be destroyable as soon as pthread_barrier_wait returns?[详细]
2023-03-25 08:25 分类:问答Condition variable signalling issue
I am in a soup. The idea may be bad but i do need a solution. I have two condition variable, say A and B.[详细]
2023-03-25 08:24 分类:问答Is there a simple way use pthread_t variables?(multiple calls of thread spawning function)
I want to make a function asynchronous (setup function just开发者_Go百科 calls into real function, no return of status) but I don\'t want to complicate things with a thread array and an extra mutex to[详细]
2023-03-25 06:17 分类:问答MingW: cannot find -lpthreadGC2
I get the error cannot find -lpthreadGC2 开发者_运维技巧 when building my program. The strange thing is that it is definitly there. I build using cmake, in combinition with Eclipse and MingW. All[详细]
2023-03-24 19:08 分类:问答