pthreads
vxWorks pthreads
All the docume开发者_开发知识库ntation I\'ve read so far seems to indicate that posix thread support exists in my version of vxWorks (6.8) however a simple test application fails to perform as expecte[详细]
2023-04-13 01:52 分类:问答Will main() catch exceptions thrown from threads?
I have a pretty large application that dynamically loads shared objects and executes code in the shared object. As a precaution, I put a try/catch around almost everything in main. I created a catch f[详细]
2023-04-12 02:28 分类:问答The alternative of __sync_val_compare_and_swap function for old gcc compiler
I have in my project the following method: long compare( long* avar, long comp, long exc ) { return __sync_val_compare_and_swap( avar, comp, exc );[详细]
2023-04-11 22:22 分类:问答is nice() used to change the thread priority or the process priority?
The man page for nice says "nice()开发者_运维技巧 adds inc to the nice value for the calling process. So, can we use it to change the nicevalue for a thread created by pthread_create?[详细]
2023-04-11 04:03 分类:问答pthreads program works for some time and then stalls
There is a program I am working on that, after I launch it, works for some time and then stalls. Here is a simplified version of the program:[详细]
2023-04-10 17:33 分类:问答sleep system call in thread
I am using pthread library for multi-threadi开发者_运维知识库ng. Inside thread function, I use sleep system call. Will this block a single thread or the whole process. Thanks.Generally, sleep affects[详细]
2023-04-10 15:26 分类:问答Will pthread_join halt the parent program if the child thread is still working?.. Will pthread_detach make it faster?? instead of using join?
My program is something like this.. I wanted to know will I make开发者_JAVA技巧 my program slow, if I call pthread join???[详细]
2023-04-10 08:06 分类:问答What could cause my program to not use all cores after a while?
I have written a program that captures and displays video from three video cards. For every frame I spawn a thread that compresses the frame to Jpeg and then puts it in queue for writing to disk. I al[详细]
2023-04-10 06:12 分类:问答How do I initialize the mutex locks and condition variables
pthread_mutex_t qlock[5] = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t qcon开发者_JS百科d[5] =PTHREAD_COND_INITIALIZER;[详细]
2023-04-10 04:02 分类:问答Trouble tracking down a Bus Error/Seg Fault in C++ and Linux
I have a program that processes neural spike data that is broadcast in UDP packets on a local network.[详细]
2023-04-10 02:45 分类:问答