0% found this document useful (0 votes)
17 views3 pages

Oel - 01

Uploaded by

Hafiz Muhammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Oel - 01

Uploaded by

Hafiz Muhammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

NATIONAL UNIVERSITY OF TECHNOLOGY

Course Title : OS Lab Course code : CS4014

Batch : 2022 Instructor’s Name : Lec Amna Ikram

Semester : Fall 2024 Name : BrekhnaAfridi

Nutech ID : F22605049

____________________________________________________________________________

Lab – 06
Lab Tasks:
Install .gcc compiler by following all the steps discuss in demo.
Make a file OEL.c?

1. Write a simple C program to print the process id?


Output:

2. Enhance your code and add fork() function and display parent and child process with
their id’s?

Output:
3. Now by using sleep() function, convert parent process into sleep for 20 second? When parent
process is
on sleep mode. Display all the active process of current shell?

Output :

You might also like