Skip to content

Instantly share code, notes, and snippets.

View DeeptanshuM's full-sized avatar

Deeptanshu Malik DeeptanshuM

View GitHub Profile
@DeeptanshuM
DeeptanshuM / Asynchronous Programming 101.md
Created July 6, 2019 02:56
Asynchronous Programming 101: Top-down introduction to Asynchronous Programming in C#

In this blog post I’ll give a top-down introduction of asynchronous programming in C#. This post may be useful for anyone new to C# and for students who have learnt about threads and concurrency. I believe that a top-down approach will be ideal as it'll first show what async programming is so that you can be interested in the how and why of it.

The code used in this blog is available on my GitHub here.

A quick review of the fundamentals

Latency & Throughput

Latency is a measure of units of time taken to do work. Throughput is measure of the units of work done per unit of time.

@DeeptanshuM
DeeptanshuM / [Draft] Asynchronous-Programming-in-C#.md
Last active July 6, 2019 02:57
[Draft] Asynchronous Programming in C#

In this blog post I’ll give a top-down introduction of asynchronous programming in C#. This post may be useful for anyone new to C# and for students who have learnt about threads and concurrency. I believe that a top-down approach will be ideal as it'll first show what async programming is so that you can be interested in the how and why of it.

A quick review of the fundamentals

Latency & Throughput

Latency is a measure of units of time taken to do work. Throughput is measure of the units of work done per unit of time.

Concurrency

Concurrency means multiple computations are happening at the same time[1]. It is different than parallelism as explained in this stackoverflow answer:

@DeeptanshuM
DeeptanshuM / DailySkyColorCityVisualization.ipynb
Created February 28, 2019 06:04
Pandas and Plot.ly tutorial: Using Data to Compare the Color of the Sky in San Francisco, Seattle, New York, Boston and Tel-Aviv.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.