pthreads
Whats going wrong with my code ? The global variable value changed while using semaphore
#include<pthread.h> #include<stdio.h> #include<semaphore.h> void func(); int a; int main()[详细]
2023-03-22 03:02 分类:问答Stack assignment to a thread
I\'ve been trying to piece together how stack memory is handed out to threads. I haven\'t been able to piece the whole thing together. I tried to go to the code, but I\'m more confused, so I\'m asking[详细]
2023-03-22 01:07 分类:问答How to restrict gdb debugging to one thread at a time
I want to debug a multi-threaded program by controlling which threads execute when. I am using C++ and gdb. I have two threads besides the main thread (for the example program) and I want to debug one[详细]
2023-03-21 07:02 分类:问答"invalid conversion from" with pthread_create issue
Any comment is appreciated for the compile error below. Although my question is similar to other thread: pthread function from a class, I still haven\'t been able to solve my problem. I am still not t[详细]
2023-03-21 06:35 分类:问答Pthread condition variable unpredictable outcome
First of all sorry for posting a long question, but please do keep patience :). As a part of my application i am using threads to read different parts of a memory mapped file, as in first half of t[详细]
2023-03-20 22:42 分类:问答Forcing a spurious-wake up in Java
This question is not about, whether spurious wakeups actually happen, because this was already discussed in full length here: Do spurious wakeups in Java actually happen? Therefore this is also not ab[详细]
2023-03-20 16:18 分类:问答thread stack pointer
In Linux 2.6.32-32, is there a way to find the following information about a thread programmatically in a pthreads program? I need: run count, stack pointer,开发者_如何学JAVA stack start/end, stack si[详细]
2023-03-20 16:16 分类:问答Pthread segment registers
I will admit I did minimal research for this question (just a few shallow google 开发者_开发技巧searches). Do threading packages (pthreads specifically, but my question applies to all x86 unix user th[详细]
2023-03-20 08:14 分类:问答MPI with thread support and Bcast calls
I was wondering if in an MPI program where you specify that there is thread support, all the开发者_运维技巧 threads make an MPI::Bcast call (making shure that in the call, the sender process only poss[详细]
2023-03-20 06:59 分类:问答pthread_mutex_lock locks, but no owner is set
I\'ve been working on this one for a few days - As a background, I\'m working on taking a single-threaded C program and making it multi-threaded. I have recently discovered a new deadlock case, but[详细]
2023-03-20 04:06 分类:问答