Introduction - If you have any usage issues, please Google them yourself
There is a barber, five chairs (in addition to a barber chair), a few chairs available contiguous memory cell. Requirements: 1) for each of the barber/customer to generate a thread, designed to correct synchronization algorithm 2) Every customer entered a barbershop, immediately after the show " Entered" and the thread is a custom logo, also showed there were a few barbershop Customers and the sitting position. 3) At least 10 customers, each hair for at least 3 seconds. 4) A number of customers to share the operation of the function code.