Fork me on GitHub
#core-async
<
2020-11-07
>
Daniel Craig02:11:34

Thanks, I was hoping to find something like this!

Daniel Craig03:11:59

I want to model the scenario where I have a set number of chairs that can be sat in and an unknown number of people who can sit in them. No chair can have more than one person sitting in it, and there can be no ‘lining up’ to wait for a chair to become empty. A person can sit in a chair only if it’s empty. How do I model this?

Daniel Craig03:11:11

I promise this isn’t homework

🙂 3
hiredman06:11:55

Sounds like text book queueing theory

hiredman06:11:55

You have a queue of people, and each chair is a worker occupied with the work of supporting a person for some amount of time