Concurrent processing: Thread pool on top of a ring buffer