pthreads
Can not find `pthread_setaffinity_np'?
I used -pthread for gcc compiler, but still 开发者_C百科can not find this API. any suggestion?It\'s a non-standard GNU extension, as the manual and the suffix _np will tell you, so include the header[详细]
2023-04-01 15:35 分类:问答Pausing the Current function for some time iphone
Hi all im trying to pause a function so some time in the middle of execution because ill have to wait for the call back fun开发者_运维知识库ctions from GData api and get my data ready to put in that f[详细]
2023-04-01 14:08 分类:问答Condition Variable Along with Mutex
A bit of confusion! What could be the problem if we look at the following scenario: My ob开发者_运维问答jective is to understand the mixture of condition variable with mutex.[详细]
2023-04-01 10:03 分类:问答pthread_cond_broadcast does not work?
I have write this program: pthread_cond_t placeFootCondition; pthread_mutex_t rf,lf; void* rss(void* in){[详细]
2023-04-01 07:15 分类:问答pthread_create memory leak?
Whenever I run valgrind on my program, it is telling that I have possibly lost memory wherever I call pthread_create. I have been trying to follow the guidance on[详细]
2023-04-01 05:19 分类:问答Pthreads - High memory usage
I am programming something in C that creates a lot of Pthreads in Linux on a 256Mb system. I usually have +200Mb free.[详细]
2023-03-31 19:26 分类:问答Is it safe to call pthread_cancel() on terminated thread?
I\'m wondering if it is safe to call pthread_cancel() on a terminated thread. I couldn\'t find any hints in the manual page. Thanks in advance for any hints.开发者_如何学Go[详细]
2023-03-31 08:47 分类:问答Is mutex needed to synchronize a simple flag between pthreads?
Let\'s imagine that I have a few worker threads such as follows: while (1) { do_something(); if (flag_isset())[详细]
2023-03-31 03:07 分类:问答pthread_create fails with ENOMEM on low free memory scenario
I have a SH4 board, here are the specs... uname -a Linux LINUX7109 2.6.23.17_stm23_A18B-HMP_7109-STSDK #1 PREEMPT Fri Aug 6 16:08:19 ART 2010[详细]
2023-03-30 10:17 分类:问答Concurrent writes to a file using multiple threads
I have a userlevel program which opens a file using the flags O_WRONLY|O_SYNC. The program creates 256 threads which attempt to write 256 or more bytes of data each to the file. I want to have a total[详细]
2023-03-30 06:34 分类:问答