Manager–worker pattern

TODO introduction.