Saturday, 12 October 2013

How to implement Multithreading in C

                               Threads in c

Before you start: To learn how to compile a c programme in C click here or click here


Gone are the days when only single task could be executed in memory at any time.
Today in the environment of multitasking OSs like Linux and windows  permits execution of several task simultaneously. Hence ,these OSs are called Multitasking OSs.

#include"stdio.h"
#include"sys/types.h"
int main()
{
printf("hello \n");
fork();
printf("kushagra \n");
return 0;
}

To learn more in C click here

No comments:

Post a Comment