Latest Post


CS604 Assignment 1 Solution Fall 2022

CS604 Assignment 1 Solution Fall 2022:  Today we are sharing with you Operating System (CS604) Assignment no 1 solution fall 2022. Before creating your assignment file read all the instructions carefully and follow all the rules. This assignment is submitted after the due date and will be not accepted. The submitted assignment does not open or the file is corrupt will be not accepted.

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignments in the last hour of the deadline. It is recommended to upload the solution file at least two days before its closing date.

Please consult with your instructor before the deadline if you find any mistake or confusion in assignment (Question statement). After the deadline, no queries will be entertained in this regard.

Question No 1:

You are required to create the two user-level threads by using the pthread_create()

library call. Following are the functionalities carried out by two thread functions.

  • The first thread should print your name and father’s name and finally print the thread id by using the pthread_self() library call.
  • Second thread should Print your VUID and campus address followed by the thread id by using the pthread_self() library call.

In the main function call the pthread_join() so that the main() function can wait for the two threads and finally, print the message exiting the main function.

The following should be the flow of your program.

Firstly, compile your c program and also link the pthread library at the compile time and also use the REENTRANT macro from the command line.

  • Run your program.
  • You are required to send the screenshot along with C Code.

CS604 assignment 1 solution fall 2022, cs604 assignment solution 2022.

Download Now👇👇👇👇👇

CS604 Download 103kb

Post a Comment