Operating Systems Lab Manual / OS Use of Threads C Program

Program Name

Write a program for use of threads.
Theory
Thread is a light weight program. Threads can run in parallel.
Program Code


Input:

Output:
Bye from Thread2
Hai from Thread1
Thread 1 returns: 0
Thread 2 returns: 0


Home     Back