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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |