A work dispatcher and some queue implementations