SortedQueue
¶
PriorityGet
¶
PriorityPut
¶
PriorityReqStore
¶
Bases: Store
This is a class derived from SimPy's Store class and has extra capabilities that makes it a priority-based store for put and get.
Processes can pass a priority as argument in the put and get request. Request with lower values of priority yields first among all get(or put) requests. If two requests with same priority are placed from two processes then FIFO order is followed to yield the requests.