Thread Programming in CPP
Simple Thread Programming in CPP
PROGRAM:
#include<iostream> #include<pthread.h> using namespace std; void *Thread() { cout<<"HELLO"; } int main(){ pthread_t t_id; pthread_create(&t_id,0,&Thread,0); pthread_join(t_id,NULL); return 0; }
Comments
Post a Comment