I know how to send signals to child process in C using the kill(pid_t pid, int sig) function. What about sending signals to threads? is it possible?. If so, how to catch开发者_如何学JAVA signals on th
I\'m debugging a multi-threaded problem with C, pthread and Linux. On my MacOS 10.5.8, C2D, is runs fine, on my Linux computers (2-4 cores) it produces undesired outputs.
Situation: I have a multithreaded program written in C.If one of the threads forks, the child process is replaced by another using exec() and the parent waits for the child to exit.
What happens if a program calls a function which is a cancellation point from a signal handler? There are a number of functions which POSIX specifies as both async-signal-safe and cancellation points.
I\'m writing MT programfor Linux in C++ and I want to know how thread cancellation is performed. As far as I understand when thread is cancelled cleanup functions are called inside thread\'s function
I\'m trying to pass messages between 2 threads using a queue, but I haven\'t gotten any results so far. When I print the contents of the message after it\'s received and before it\'s sent, it only see
I think the question is self-e开发者_开发问答xplanatory. I know exec runs on another process, so if I wanted to ls a directory I would do something like that.
I\'m allocating my pthread thread-specific data from a fixed-size global pool that\'s controlled by a mutex. (The code in question is not permitted to allocate memory dynamically; all the memory it\'s
Here is t开发者_开发技巧he function which is giving segfault in pthread_join: void call_merge()
fgetc() and other input functions can return when there\'s no data on the file descriptor. This can be simulated for console applications reading from stdin typing Ctrl-D on keyboard (at least on unix