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 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: 10356

.

+ 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

sudo command dain sudo install karain

simple comand line ma sudo likhain or usay install karain uper discription ma bhi likha huwa araha ha

sudo install kasa krna ha

sudo cmd da toCapture.PNG

please help me mc160402062@vu.edu.pk for assignment

sr copy past nhe ho rha text editor my plz help me

simply open text editor and paste the code and save file on desktop

Send me Data. or mail
Send me mail account

Sir plz mrii I'd K screen shot bna do

Name usman farid

Student ID bc150401796

Gmail usmanfarid1994@gmail.com

fahadmukhtar005@gmail.com

MC170401955

cs604

MCS

sir kindly send me solution mera software download hi nai ho raha 1 gb ka hai 

mc160401482

Sania sajid 

mc160401482@vu.edu.pk

iqraishaqvu@gmail.com

RSS

Latest Activity

+ Iuuoɔǝut+ replied to + Iuuoɔǝut+'s discussion Why I always suggest not to copy paste any internship report
6 minutes ago
namaloomafraaad updated their profile
14 minutes ago
+ Adeeena replied to + Adeeena's discussion chay or tum : /
27 minutes ago
+ Adeeena replied to + Adeeena's discussion chay or tum : /
28 minutes ago
+ Adeeena replied to + Adeeena's discussion chay or tum : /
28 minutes ago
+ M.Tariq Malik left a comment for stylo
35 minutes ago
+ Iuuoɔǝut+ replied to + Iuuoɔǝut+'s discussion internship report on AL BARAKA Bank (2nd report)
35 minutes ago
+ M.Tariq Malik replied to Whispering Soul's discussion funny kids and animals
36 minutes ago
+ M.Tariq Malik liked Whispering Soul's discussion funny kids and animals
36 minutes ago
+ M.Tariq Malik replied to + Iuuoɔǝut+'s discussion internship report on AL BARAKA Bank (2nd report)
37 minutes ago
+ M.Tariq Malik liked + Iuuoɔǝut+'s discussion internship report on AL BARAKA Bank (2nd report)
37 minutes ago
+ ՏhehαrZααD + liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion تربیت اسے کہتے ہیں
38 minutes ago
+ M.Tariq Malik replied to +¢αяєℓєѕѕ gιяℓ's discussion My Dearest Friendz ❤ JK, DD, Fiya, Bushra , And Beloved bestie senii ❤ yOu people look So Cute
41 minutes ago
A¥E$Ha joined + M.Tariq Malik's group
51 minutes ago
A¥E$Ha joined + M.Tariq Malik's group
53 minutes ago
A¥E$Ha joined + M.Tariq Malik's group
54 minutes ago
+ M.Tariq Malik left a comment for Nadir
55 minutes ago
A¥E$Ha joined + M.Tariq Malik's group
55 minutes ago
cute prince joined + M.Tariq Malik's group
56 minutes ago
cute prince joined + M.Tariq Malik's group
57 minutes ago

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

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