|
Design and Implementation of Distributed Applications - 2023/20241st Year, 1st QuarterMEIC - Campus AlamedaMEIC - Campus Tagus Park METI - Campus Tagus Park |
Slides (pdf)
Implement a thread pool so that:
The thread pool ThrPool é initialised with a set of N thread.
Applications submit ThrWork delegates for assynchronous execution using the AssyncInvoke method.
The invocation request are placed in a circular buffer.
Free threads can perform requests. If there are no requests, the threads are blocked.
When a thread takes a request from the buffer, it runs it and then tries again to remove another request.
Base your solution on the code in exercicio-3.cs.