menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Inside .NE...
source image

Medium

1M

read

282

img
dot

Inside .NET Asynchrony and Concurrency : Threads and Thread Pool, How I/O Work Is Done, Completion…

  • A process is an instance of a program being executed, with its own system resources allocated by the OS.
  • Threads are units of execution within a process, sharing resources but having their own stack memory space.
  • Concurrency involves managing multiple tasks, even if not running simultaneously.
  • Parallelism involves executing multiple tasks in actual parallel at the same time.
  • Asynchrony allows executing multiple parts of a program in a non-blocking way.
  • Thread Pool in .NET manages threads efficiently, starting with cores' logical count.
  • I/O-bound operations spend time waiting for external resources, best handled asynchronously.
  • CPU-bound operations benefit from parallelism and multithreading for improved performance.
  • Worker threads handle CPU-bound tasks, while I/O threads manage completed I/O operations.
  • Async/await in C# allows writing non-blocking code in a sequential and readable manner.

Read Full Article

like

17 Likes

For uninterrupted reading, download the app