Question: 1 2 : 1 2 8 7 Back OS Project 2 - laundromat of the future Operating Systems | Spring 2 0 2 4 Group
:
Back OS Project laundromat of the future
Operating Systems Spring
Group Project: Report and Presentation
Due Date: May
Laundromat Simulation
Laundromats offer a number of different service options, each with specific costs associated. In this project, we focus mainly on the customers' use of washers and dryers. Other services, such as folding clean clothes or repairs, are not within the scope of this project. We assume that we have NW washers and ND dryers, where NW and ND For simplicity, we assume that customers of the laundromat have already created profiles and are part of the embedded system that connects washers, dryers, and kiosk terminals. There is a minimum of two kiosk terminals which are used by customers in selfserve mode to create their profiles, update their profiles, request a washer, and request a dryer. In this application, you are tasked to design a set of concurrent processes to simulate the operations of the laundromat of the future. You are expected to use pseudocode and comments to clearly develop a practical solution which is free of race conditions.
The main processes in the system include the following:
GetLaundryService process the laundromat customers use the two or more kiosk terminals to request washers and dryers, one at a time, and pay for the service. It is assumed that the system has all the profiles of the laundromat customers, which include the customer's name, mobile phone number, email and their preferred primary medium for communication. This process consists of the following steps:
Customer provides emailphone number and password for authentication.
Customer chooses washer or dryer request not both at the same time
Laundromat system searches for a free resource, a washer or dryer, based on the customer's choice
If there are no available resources to satisfy the request, the system advises the customer that there are no resources available to satisfy hisher request at this time. The customer is advised to come back later
If there are resources available, the system uses the customer's profile to communicate a randomly generated service ID subsequently called PIN, to use the desired service
Customer completes the payment for the service if the allocation is successful.
Washer process the laundromat uses smart washers for efficiency and the amount of water and the length of the washing are automatically determined. No two customers can use the same washer at the same time.
This process consists of the following steps:
Customer enters received PIN number
Washer validates the PIN number. If the validation is successful, the process proceeds to the actual washing process. The washer becomes inaccessible.
Washing takes place.
Washer is released and made accessible to others
Dryer process the laundromat uses smart dryers for efficiency and the time for drying clothes is automatically determined. No two customers can use the same dryer at the same time.
This process consists of the following steps:
Customer enters received PIN number
Dryer validates the PIN number. If the validation is successful, the process proceeds to the actual drying process. The dryer becomes inaccessible.
Drying takes place.
Dryer is released and made accessible to others
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
