Back to problems

Multi-Key Bounded Task Executor

Object-Oriented Programming · Microsoft · Hard

Ordered Concurrent Task Executor Hard · Concurrency, Multithreading · · Implement a thread‑safe executor that schedules tasks identified by a string key while enforcing per‑key ordering and global concurrency limits. Define a Task functional interface: Design a class OrderedExecutor with the following two public methods: The executor must obey every rule below: Tasks submitted under the same key execute strictly in the order they were submitted (FIFO). No two tasks with the…

Checking your access…