Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A simple pthread program runtime error in c++ 2011
#1
A simple pthread program runtime error in c++ 2011


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); }

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  c++ program on unix varup 0 7,588 10-10-2012, 06:16 PM
Last Post: varup
  why we use inline function if there are simple function available, or what is the spa Vuhelper 0 21,987 05-31-2012, 01:51 AM
Last Post: Vuhelper
  i take input from getchar(); function in program in C++ 2012 Vuhelper 0 3,001 05-31-2012, 01:40 AM
Last Post: Vuhelper
  program Output in C++ 2012 Vuhelper 0 2,965 01-06-2012, 12:28 AM
Last Post: Vuhelper
  For running C++ program from command prompt “gcc” and “g++” compilers are used. Vuhelper 0 6,393 01-04-2012, 10:41 PM
Last Post: Vuhelper
  what is ADT in simple words? Vuhelper 0 1,950 01-04-2012, 10:15 PM
Last Post: Vuhelper
  array project code c++ 2011 Vuhelper 0 1,278 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 955 12-10-2011, 06:31 PM
Last Post: Vuhelper
  stack during function call in C++ 2011 Vuhelper 0 2,031 11-05-2011, 05:05 PM
Last Post: Vuhelper
  Function (Retrun push)for what purpose use in the program. ? Vuhelper 0 1,862 11-05-2011, 05:03 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 2 Guest(s)