Subj : returning arguments To : comp.programming.threads From : Huub Date : Mon Jun 27 2005 01:38 pm Hi, I have written programs on Slackware Linux in C++, each program uses a thread. In two of these threads I read a boolean, in one I read an integer. Like this; void *Draad(void *threadid) { read sensor; return data; } main() { rc = pthread_create(&threads[1], NULL, Draad, (void *)tasdk_id); } I know this isn't compilable code, but it's just to give an idea. My question(s): - Do threads *have* to be void? - Can I pass on return values directly from the thread? - If not, how do I pass them on? I hope my question is clear enough. Thank you for helping, Huub .