c program to create a zombie process(defunct)
To run the program:
1- Compile using g++ zombie.c
or whatever is your compiler.
2- run the program use ./a.out
.
To see the running process run ps u | grep Z+
c program to create threads
The program read an integer input from STDIN and print all the primes number less than or equal to the STDOUT.
To run the program:
1- Compile using gcc -pthread thread.c
or whatever is your compiler.
2- run the program use ./a.out
.