Claudiu HBann
async/await and mutexes
I think what he said is an overkill, I want this to be initialized only once and when I need it not to run a service indefinetly that does nothing https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-8.0&tabs=visual-studio
9 replies
C# Tasks question
so basically your first blog says that all the operations in the end are made by the hardware (read/write to the disk or a socket) and let's say you have a async method
A
with 2 awaits and the first is a socket read and the second is a disk write and the first operation starts and the method suspends and the control is returned to the caller and after a while when the operation is done there is an interrupt and the current running thread is suspended and the method is running right now and the first operation from the async method s completed and the next is taken and repeat?23 replies