multi-resource queuing system