to write threads
hi all
i have a doubt.
i wrote a program using threads.
i used threads like this
void one()
{
pthread_t thread;
gint iret1;
iret1=pthread_create( &thread, NULL, two, NULL);
}
void two()
{
printf("enterd in to thread \n");
three();
pthread_exit(0);
}
void three()
{
printf("hiiiiiiii \n");
}
can you tell is this wright way to use threads.
help me thank you in advance
|