I need urgently a software that use: #include <pthread.h>
Passengers on a flight must do at a specific gate and boarding
They are divided into two groups: priority boarding and normal ticket. At the gate
There are four flight attendants who are employed to control the
documents of the passengers and get them on board and use the following
mode. Passengers boarding with priority always has priority: if
there is a passenger with priority boarding, the first assistant free controls
documents and passes. The other passengers (those with ticket
normal) pass control documents only if there are at least 2
flight attendants free and available for passengers with priority boarding.
When there are no passengers (of any kind) then the flight attendants
lock. The passengers (with priority boarding and not) that is not
can be served immediately, they are still in
their tails. Initially there are no passengers waiting
and all 4 servers are available.
• Write the thread VIP and VNP and assistant, respectively, the procedures priorityBoarding (),
normalBoarding () and checkIDCard ()
I can explain all that you don't understand, I speak also Italian.