NKNachiappan Kumarappanindev-chronicle.hashnode.dev·May 30, 2024 · 3 min readProducer Consumer ProblemProblem Producer - consumer problem is a typical textbook problem in multithreading. Here there are two groups of threads/tasks. The first group of thread/task produces something, and second group of thread/task consumes what has been produced. Gener...00
NKNachiappan Kumarappanindev-chronicle.hashnode.dev·May 29, 2024 · 1 min readSortedDictionaryObject model is same as SortedList Underlying implementation is self balancing binary search tree00
NKNachiappan Kumarappanindev-chronicle.hashnode.dev·May 29, 2024 · 1 min readSortedListSortedList<TKey, TValue> stores key value pairs in sorted order The Values can be accessed with the key or index The SortedList can be iterated over The sorted list utilizes two lists to store the data. One list for the keys and other list for the...00
NKNachiappan Kumarappanindev-chronicle.hashnode.dev·May 27, 2024 · 3 min readMutex(lock) with C# exampleIn previous blog posts, we've observed that Threads/Tasks have the capability to run concurrently (more accurately, pseudo-concurrently). Additionally, we've explored how it's the responsibility of the operating system to manage thread scheduling. Th...00
NKNachiappan Kumarappanindev-chronicle.hashnode.dev·Apr 18, 2024 · 3 min readThreads (And Tasks) run pseudo parallellyOnly one thread runs at any moment Processors of the past (or what is called as a core) are capable of executing only one instruction at a time. Consequently, only a single thread could be actively running at any given moment. This is due to the arch...00