We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

Assignment No. 01

Semester: Fall 2018

Operating Systems (CS604)


Total Marks: 20


Due Date: 4th December, 2018



Please read the following instructions carefully before submitting assignment:

§  You should submit your assignment before or on due date on VULMS.

§  Your assignment should be your own work in your own words. It should not be copied from Internet, handouts or books.

§  Assignment sent via Email will not be replied and accepted.

§  If the submitted assignment does not open or file (or ZIP) is corrupt, it will not be marked and hence awarded zero marks.



·         To know about how to create and terminate multiple threads in Linux Operating System.

·         To learn how to write, compile and execute C program in Linux O/S.



For any query about the assignment, contact at CS604@vu.edu.pk


Problem Statement

You are required to write a C program that will create three threads named as; Thread 1, Thread 2 and Thread 3. You are required to run these threads in parallel fashion and show output as shown in sample screenshots. Each thread will display its Process and Thread ID as well.


The threads will have the additional functionalities:


Thread 1 will display the personal information of student such as student name and id.

Thread 2 will display the course related information such as Course Code and Course Name.

Thread 3 will display the degree name and university name.


All such information should be passed as parameters to thread function and then display such information in each thread. Make sure that parent thread or main thread should wait until all other threads have finished their execution. Finally, all threads will be terminated.


You are required to Compile & run C program on Linux Operating system. You will compile your C program file with your Student ID.


Note:  File name other than your Student ID will not get marks.

You will write code and paste following two screenshots in Microsoft Word file.

1)      You will take screenshot of compiling command that you will issue at Linux Terminal.

2)      Then you will run your executable and take its screenshot.


Sample Output for Program


1. Compilation Phase



2. Program Output



Note: You are required to upload only Microsoft Word file which contains C code and required screenshots for login and program output. File other than Microsoft Word will not be accepted.






Views: 10667


Replies to This Discussion

mere be koe help kar day koe plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

meri be help kar dayn plz
mujy bilkul samj ni aa rehe
koe tu meri help kar plz

Ap k PS Ubuntu install ha

i share complete solution kindly view this its too easy follow .. if any query comments i will try to help u 

How To Install Ubuntu its part 1

How to write compile and execute C program in Linux O/S part  2

hope its helpful fo all of u 

Bhai main kar raha hoon UNBUNTU par mera system run nai kar raha..

Please ap solve kar dain



zohaibsabir267@gmail.com    Please

vmware ko mera system run nai kar raha why? please help me mujhy vmware mail kar dain..... zohaibsabir267@gmail.com


video follow kerny k baad bhe VM nahi chal rahi meray PC peh........yeh error show ho raha hai .....Sir help ker dein plz


ap k pc or lapi k config kai hai... agr low hai tu x86 ubuntu download kran web sa ... 

Sir g ubuntu tu download hai Workstation bhe download hai


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service