© 2023 Hashnode
#threading
What is a thread? Operating System (OS) threads, often just called threads, are a way for a program to split itself into two or more simultaneously (or seemingly simultaneously) running tasks. Here's …
Everyone did multitasking in their life knowingly or unknowingly. Whether it's writing code while enjoying music or watching a video and downloading it at the same time. Here the multithreading works the same as in Java. When two or more p…
Coroutines. Hmm. What are they? Coroutines are lightweight threads built and running on top of underlying JVM threads. Coroutines can be thought of as simple threads without much memory footprint. Surprisingly coroutines can switch threads …
The Task.WhenAll method in C# allows you to create a task that is completed when a group of other tasks have finished executing. This can be useful when you want to wait for multiple tasks to complete…
Cancellation tokens in C# are used to signal that a task or operation should be cancelled. They allow for the cooperative cancellation of a task or operation, rather than aborting it forcibly. To use …