Working on Pthread
A basic multithreading program in gcc as follows:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
void* routine()
{
printf("This is from threads\n");
}
int main(int argc, char *argv[])
{
pthread_t t1,t2;
...
arunudayakumar.hashnode.dev2 min read