Python Forum
How to yield multiple requests but only action one request in Simpy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to yield multiple requests but only action one request in Simpy
#1
Within Simpy, I have multiple resources that can do the same job, but they are different so I can't just increase the capacity. Picture a single queue in a shopping centre that leads to all tellers. Some are manned and some are self serve. I put a request for both (two separate requests), and then yield rq_manned OR rq_selfserve, satisfied if atleast one of the requests is granted.

The problem is, what if they both become available at the same time, I don't want to actually request them both. What to do?
Reply


Messages In This Thread
How to yield multiple requests but only action one request in Simpy - by BushChooks - Apr-05-2020, 12:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020