C# LocalDataStoreSlot, ThreadStatic, and ThreadLocal To Pass Thread Specific Data

LocalDataStoreSlot

Every thread will have isolated data. I try to show that concurrent web requests are coming to Controller classes and different data is passed to the threads. Lastly, don't use with async/await, it is not working properly.

ThreadStatic

ThreadLocal

Leave a Reply