LoginSignup
0
1

More than 5 years have passed since last update.

Visual Studio > 並列・並行処理の種類 > 経時列順

Last updated at Posted at 2017-12-20
動作環境
Windows 8.1 Pro (64bit)
Microsoft Visual Studio 2017 Community
Sublime Text 2

関連: Visual Studio | WPF > 非同期処理 > Link: ざっくりマルチスレッド(非同期処理)

ざっくりマルチスレッド(非同期処理) @ GOMOKULOG
に記載されている4つの方法がある。

パーフェクトC# 第3版(2013年)においては、別途、ParallelクラスとBackgroundWorkerクラスの記載があった。

何をどの用途に使うかは別途検討するとして、6種類の登場順序と.NET Frameworkのバージョン(と日付)の整理をする。

  • Thread + delegate
    • .NET Framework 1.1 (2003年4月) and later: link
  • ThreadPool
    • .NET Framework 1.1 (2003年4月) and later: link
  • BackgroundWorker
    • .NET Framework 2.0 (2005年11月) and later: link
  • Task
    • .NET Framework 4.0 (2010年4月) and later: link
  • Parallel
    • .NET Framework 4.0 (2010年4月) and later: link
  • async and await
    • .NET Framework 4.5 (2012年8月) and later: link

注記:用途によっては上記の6つをひとくくりにするのはおかしいかもしれない

最新のものが常に良いかというのは、必ずしもあてはまらないだろう。
新しいものと古いもの(それぞれの有用性) by @sjuny さん

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1