A simple pthread program runtime error in c++ 2011View more random threads:
- what is Recursive function in c++ June 2011
- Is there Any difference b/w Object Oriented ProgrAmming And...
- what this function do ? void student ::setName (char...
- overloading and polymorphism in c++
- some features of PREPROCESSOR in c and C++
- what will be the function of storeDetailOfData(). Is it...
- assalam o alaikum sir Is that neccessory to use a Function...
- what are Templates?
- what is difference b/w characteristic, behavior and...
- Different syntax? in c++ 2011-12
Code:#include<pthread.h> #include<stdio.h> void *thread_routine(void* arg) { printf("Inside newly created thread \n"); } int main(int argc, char* argv[]) { pthread_t thread_id; void *thread_result; pthread_create(&thread_id, NULL, thread_routine, NULL); printf("Inside main thread \n"); pthread_join(thread_id, &thread_result); }
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)