-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
705 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
docs/document/Modern CSharp/docs/Parallel Programming/Overview.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.