SilverShade
SilverShade
Explore posts from servers
CC#
Created by SilverShade on 11/11/2024 in #help
Uncaught OperationCancelledException when shutting down IHostedService
Is there a way to detect that OperationCancelledException was thrown specifically due to application shutdown (e.g. pressing "stop" button in IDE)?
53 replies
CC#
Created by SilverShade on 2/20/2024 in #help
ThreadPool implementation with WSQ
I'm trying to implement a simple version of ThreadPool with work stealing queues. It seems like i'm missing something, but can't see what. My implementation with WSQs is actually slower than without them. The implementation of a work stealing queue (WorkStealingQueue class) was provided for me, so you can assume it's not the issue. I'll provide my code in the messages below.
3 replies