sicko1
June 2nd, 2009, 04:03 AM
Hello ! Im new in linux programming, if you please help solve this problem!
UNI Gaming Games d.o.o. N possession of slot machines. For one avtomat may be only one student. In the casino there to play M students, each student plays between 0 and max seconds. If all gaming machines are busy, the student "appeal" (display screen) and leave the casino. Write a program igralnica.c, which will be a simulated casino.
Tips:
-Slot machines can present with count display.
-Playing simulate with funciton sleep().
-Processes at inlet are NO blocked -> see the traffic light flags.
-Father creates m HORIZONTAL processes, and set a random time to play (with the help of the functions rand ()),
- For each sign the transition process between states in terms of: student x is acquired machine, x is a student left the machine, student x: playroom is full of it go,
- Remember to wait for all the sons and delete traffic light.
UNI Gaming Games d.o.o. N possession of slot machines. For one avtomat may be only one student. In the casino there to play M students, each student plays between 0 and max seconds. If all gaming machines are busy, the student "appeal" (display screen) and leave the casino. Write a program igralnica.c, which will be a simulated casino.
Tips:
-Slot machines can present with count display.
-Playing simulate with funciton sleep().
-Processes at inlet are NO blocked -> see the traffic light flags.
-Father creates m HORIZONTAL processes, and set a random time to play (with the help of the functions rand ()),
- For each sign the transition process between states in terms of: student x is acquired machine, x is a student left the machine, student x: playroom is full of it go,
- Remember to wait for all the sons and delete traffic light.