Untitled
Anonymous
plain_text
12/04/2021 12:19 PM
300 B
24
Indexable
t=(pthread_t *)malloc(ch * sizeof(pthread_t ));
for(i=0;i<ch;i++)
{
pthread_create(&t[i],NULL,print,NULL); //Default Attributes
}
for(i=0;i<ch;i++)
{
pthread_join(t[i],NULL);
}Editor is loading...