Limit the number of processes running via a system where they have to request their resources before they start. If the system doesn't have them, everything blocks.
Limit the number of processes running via a system where they have to request their resources before they start. If the system doesn't have them, everything blocks.
(fifo-mgr &
{:keys [system-core-count]
:or {system-core-count *machine-core-count*}})
(release-cores mgr core-count)
nonblocking returns cores to the source
nonblocking returns cores to the source
(request-cores mgr core-count)
potentially blocking call, returns when cores can be satisfied
potentially blocking call, returns when cores can be satisfied
(with-cores mgr core-count & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close