Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CS: Computer System Concepts C programming language- OS In the borrowing section

ID: 3779936 • Letter: C

Question

CS: Computer System Concepts C programming language- OS In the borrowing section of the university library, we have different attendants: Attendant 1: verifies that we have a valid ID card Attendant 2: takes information about the book that we wish to borrow Attendant 3: chocks that the book is available for borrowing Attendant 4: finally slides the book through the barcode reader, and hands it over to us. Assume that the attendants are communicating sequential processes, and that they are using some interposes communication mechanism. What mechanism could this be? Explain.

Explanation / Answer

Please find the required solution:

* The Mechanism used here is called Process synchronization.
* Here Processes are independent of functionality but requires input from the previous process.
* Attendant-1: Can verifies for valid ID card.
* Attendant-2: Takes information about book.(To be done only if the ID card is valid)
* Attendant-3: Check for book based on information received.(Will be done if the ID card is valid and information is received)
* Attendant-4: Slides the book with bar-code reader and give the book.(Will be done only book is available)