Object-Oriented Programming · Amazon · Hard
Problem Create a thread-safe job scheduler that can execute several tasks concurrently while honoring their dependencies. A task must not begin until every task it depends on has finished. Independent tasks should be allowed to run at the same time, using either threads or processes, while the implementation manages shared resources safely. Provide an implementation and use it to demonstrate that dependency ordering and parallel execution behave correctly. Use an interface…
Checking your access…