We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Assignment No. 01

Semester: Fall 2018

Operating Systems (CS604)

 

Total Marks: 20

 

Due Date: 4th December, 2018

 

Instructions:                          

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.

Objectives:

 

·         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.

 

 

 

BEST OF LUCK

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 10363

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

ok

please mujhe koi bana k de de mara laptop slow ha

bhai please guid kr dany ubuntu text editor ma code kasy past kia jay window word file sy

AOA, brother can you help, because right now I am out of the city and can't make assignment I can provide data, I will be thank full to you.

ID: mc150402462

code: CS 604

MIT. VU

waiting for your positive response

Thanks

you guys should have virtualBOX with Ubuntu ISO file to run your VirtualBOX. and than correct syntax code to run it. if you have these things than you got the output result.

Sir g configuration  kasay kerni hai software kii

watch 1st video i share all steps

ok sir

meri be help karday sir g

kai issue a rha 

noor code to assignment file m,a mojod ha dikh kar likh lo or mujhy bh bana do please 

my IDMC170401955 

RSS

Latest Activity

Profile IconAini MCS and Muskan dia joined + M.Tariq Malik's group
44 seconds ago
mahi ahsan replied to + "Jɨyą's discussion CS501 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 12-11-2019 in the group CS501 Advance Computer Architecture
13 minutes ago
rehmak liked + M.Tariq Malik's discussion CS619 Final Project Fall 2019 - My Travel Expenses Manager Android App
14 minutes ago
Mani Siddiqui BS VIII posted a status
"عشق وه علمِ ریاضی ھے که جس میں فارس.. دو سے جب ایک نکالیں تو صفر بچتا ھے"
16 minutes ago
+***piya o ry piya***+ replied to + "Jɨyą's discussion What are u gOod at....... :v
20 minutes ago
+***piya o ry piya***+ liked + "Jɨyą's discussion What are u gOod at....... :v
21 minutes ago
Mani Siddiqui BS VIII replied to ayesha's discussion CS614 Assignment NO.1 Fall 2019 Solution&Discussion Due date: 14 Nov 2019 in the group CS614 Data Warehousing
21 minutes ago
Mani Siddiqui BS VIII joined + M.Tariq Malik's group
21 minutes ago
Mani Siddiqui BS VIII joined + M.Tariq Malik's group
23 minutes ago
++Killing Joke++ updated their profile
38 minutes ago
Aakash Ahmed replied to +¢αяєℓєѕѕ gιяℓ's discussion CS408 - Human Computer Interaction Assignment No.1 Semester: Fall 2019 in the group CS408 Human Computer Interaction
1 hour ago
Profile IconAakash Ahmed and Preçîõûš joined + M.Tariq Malik's group
1 hour ago
+ Abb@s replied to + !! SARAH's discussion mne hassan ko mne kbhi nhi manga dua me ,..<3 love love hassan to azal se mera he na..!!
1 hour ago
+ Abb@s replied to + !! SARAH's discussion mne hassan ko mne kbhi nhi manga dua me ,..<3 love love hassan to azal se mera he na..!!
1 hour ago
Maham Rafiq and Muhammad Hussnain Hafeez are now friends
1 hour ago
roshan khetran liked + M.Tariq Malik's group ISL201 Islamic Studies
1 hour ago
Bilal Chaudhary replied to + M.Tariq Malik's discussion CS603 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 11-11-2019 in the group CS603 Software Architecture and Design
1 hour ago
Bilal Chaudhary joined + M.Tariq Malik's group
1 hour ago
pakeeza fatima liked + M.Tariq Malik's discussion MGT101 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 13-11-2019
1 hour ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + M.Tariq Malik's discussion MGT301 Principles of Marketing Assignment No 01 Fall 2019 Solution & Discussion in the group MGT301 Principles of Marketing
1 hour ago

Today Top Members 

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

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