Assignment No. 01 Semester: Fall 2018 Operating Systems (CS604) Solution

Discuss CS Assignments in this section .
Forum rules
Discuss Following Subjects Assignments:
CS101,CS201,CS206,CS301,CS302,CS304,CS311,CS312,CS401,CS402,CS403,CS408,CS410,CS411,CS501,CS502,CS504,CS506,CS507,CS508,CS601,CS602,CS604,CS605
CS606,CS607,CS609,CS610,CS614,CS615,CS701,CS702,CS703,CS704,CS706,CS707,CS708,CS709,CS710,CS711,CS712,CS713,CS716,CS718,CS721,CS723,CS724,CS726
Post Reply
User avatar
ALI RAZA
★★★★★★★★★★★★★
★★★★★★★★★★★★★
Posts: 177
Joined: Fri Dec 22, 2017 8:10 am
Location: Lahore
Has thanked: 6 times
Been thanked: 7 times
Contact:
Status: Offline

Assignment No. 01 Semester: Fall 2018 Operating Systems (CS604) Solution

Post by ALI RAZA » Sun Dec 02, 2018 8:17 am

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.



User avatar
ALI RAZA
★★★★★★★★★★★★★
★★★★★★★★★★★★★
Posts: 177
Joined: Fri Dec 22, 2017 8:10 am
Location: Lahore
Has thanked: 6 times
Been thanked: 7 times
Contact:
Status: Offline

Re: Assignment No. 01 Semester: Fall 2018 Operating Systems (CS604) Solution

Post by ALI RAZA » Sun Dec 02, 2018 8:42 am

Follow These Steps to Solve this Assignment
Step No :1
First of All Download Linux Ubuntu ISO File By This Link Download Ubuntu Linux
Image


Step No :2
Download Virtual Box Click to Download


Step No :3

How to install Linux Ubuntu in Virtual Box watch this video

Post Reply

Last 10 Members Who Visited This Topic

User avatar ALI RAZA (9), User avatar kashif (1)

  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest