Description: Cashiers and customer issues (semaphore operation)
Design Objective: To semaphore mechanism to understand and master the process synchronization and mutual exclusion mechanism, familiar semaphore manipulation functions, use semaphore control to shared resources.
The operating system is a very strong engineering curriculum, which requires students to master not only the operating system principles and theories of knowledge work, also requires students practical ability, to deepen understanding of the content of the study, so that students mastered computer methods of operation, using a variety of software tools to enhance the understanding of the course content.
Requirements: There is a cashier in a supermarket, and at the same time there are up to n a customer shopping, we can be the customer and cashier as two different processes, and workflow as shown below. To take advantage of PV operating correctly coordination between these two processes, a set of three semaphore S1, S2 and Sn
To Search:
File list (Check if you may need any files):
收银员与顾客.cpp