Semaphores - C (project included, only small change needed)

profilePedroFr13

Hello. I've done most of my project, wich consists in doing a aquatic park.

The park has X (can be changed in config file) toboggans and one (fixed) pool. 

It has a waiting queue (semaphore) that doesn't it let it go trough unless there's avaiable spots.

Thread toboggan that controlls when there is avaible toboggans. 

Thread normal client (can access toboggans and pool ) and children and elder (can only access pool).

My problem is the number of toboggans incrementing. I want to say they are avaible, and then each client is assigned to one.

I want you to only change the "tarefa atracao" and the "tarefa_cliente_normal" wich is the thread for the normal client that can access the toboggan.

  • 10 years ago
  • 20
Answer(0)
Bids(0)