Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Feb 13, 2025
1 parent 79a6711 commit 95fdaea
Show file tree
Hide file tree
Showing 4 changed files with 705 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/document/Modern CSharp/docs/Parallel Programming/Overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Overview

## Concurrency & Multi-Threading

> Concurrency is about dealing with lots of things at once, but parallelism is about doing lots of things at once.
- Concurrency works on a single core that handles one or more tasks at the same time with interleaving executions
- it's a fake parallelism, but fast enough to act like a parallelism.
- Multi-Threading starts new threads from the same process; Threads can be handled by multiple core when available
- Still work concurrently when only single core available.
- If number of threads exceeds number of cores, the remaining are scheduled as concurrent

## What's Involved

- Task-based Asynchronous Model
- Task Creation & Invocation
- Task Cancellation
- Waiting for Task
- Data Sharing & Synchronization
- Thread-safe Collections
- Task coordination
- Paralle Utilities(`Paralle` class & PLINQ)
Loading

0 comments on commit 95fdaea

Please sign in to comment.