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
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
You've reached the end of your free preview.
Want to read all 5 pages?