OS Lab 13.docx - Bahria University Lahore Campus Department of Computer Sciences Lab Journal 13(Fall 2018 Course Course Code Faculty\u2019s Name Operating

OS Lab 13.docx - Bahria University Lahore Campus Department...

This preview shows page 1 - 3 out of 5 pages.

Bahria University, Lahore Campus Department of Computer Sciences Lab Journal 13 (Fall 2018) Course: Operating System Lab Date: Course Code: CSL - 320 Max Marks: 40 Faculty’s Name: Nighat Usman Lab Engineer: Shoaib Khan Name:Amjad Ali Khokhar Enroll No:03-134161-003 Objective(s) : To implement Producer & Consumer Problem (Semaphore). Lab Tasks : Task 01: Write the code to initialize Semaphore Mutex. Task 02: Write the code according the requirement if it’s a consumer. Task 03: Write the code according to the requirement if it’s a producer. Task 04: Write a program to implement the producer consumer example using semaphore. Lab Grading Sheet : Task Max Mark s Obtained Marks Comments( if any ) 1. 10 2. 10 3. 10 4. 10 Total 40 Signature Note : Attempt all tasks and get them checked by your Lab. Instructor
Image of page 1
Lab Manual Operating System | CSL-320 Lab 13: Semaphore Objective(s): To implement Producer & Consumer Problem (Semaphore) Tool(s) used: Ubuntu, VIM Editor A semaphore , in its most basic form, is a protected integer variable that can facilitate and restrict access to shared resources in a multi-processing environment. The producer–consumer problem
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture