並行計算

コンピュータプログラムにおいて複数の相互作用を及ぼす計算タスクの(同時)並行的実行

: Concurrent computing調Concurrent programming

[1]

イントロダクション

編集

parallel computing[2]serial computing[3]

[4]使[5]調[6]OSsequential computing[3]



AB

AB

AB


リソース共有アクセス調整

編集

/調[7]
boolean withdraw(int withdrawal) {
    if (balance > withdrawal) {
        balance = balance - withdrawal;
        return true;
    } 
    return false;
}

balance=500ABAwithdraw(300)Bwithdraw(350)A2true3B2balance > withdrawaltrueABbalance=-150使

調調

並行計算のモデル

編集

数々の並行計算モデルが提唱されている。

一貫性モデル

編集

consistency models//使

並行計算の実装

編集


相互作用と通信

編集



1





JavaC#


2

//Future



ErlangGoScalaOpenMPIOccam

send and prayfuturepromise

並行プログラミング言語

編集

Future

[?]JavaC#Erlang使

PictErlangLimboOccam 20使:

Ada

Afnix  AlephAlef

Alef  Plan 9使

Alice  Standard ML  Future 

CDL (Concurrent Description Language)  machine translatable

ChucK  

Cilk  C

Clojure  LISPJVM

Concurrent C

Concurrent Clean  Haskell

Concurrent Pascal  by Per Brinch Hansen

Corn

Curry

Cω  C C#

E  Future使

Eiffel  SCOOP

Erlang  使

Janus  askerteller

Join Java  Java

Joule  

KL1  Guarded Horn ClausesKLIC

Limbo  AlefPlan 9Inferno使

Oz  Future
Mozart Programming System  Oz

MultiLisp  Scheme 

Occam  Communicating Sequential Processes (CSP) 
Occam-π  Occamπ

Pict  π

SALSA  

SR  


関連項目

編集

脚注

編集
  1. ^ Operating System Concepts 9th edition, Abraham Silberschatz. "Chapter 4: Threads"
  2. ^ Pike, Rob (2012-01-11). "Concurrency is not Parallelism". Waza conference, 11 January 2012. Retrieved from http://talks.golang.org/2012/waza.slide (slides) and http://vimeo.com/49718712 (video).
  3. ^ a b Patterson & Hennessy 2013, p. 503.
  4. ^ Parallelism vs. Concurrency”. Haskell Wiki. 2020年1月閲覧。
  5. ^ Schneider, Fred B. (1997-05-06). On Concurrent Programming. Springer. ISBN 9780387949420 
  6. ^ Ben-Ari, Mordechai (2006). Principles of Concurrent and Distributed Programming (2nd ed.). Addison-Wesley. ISBN 978-0-321-31283-9 
  7. ^ Ben-Ari, Mordechai (2006). Principles of Concurrent and Distributed Programming (2nd ed.). Addison-Wesley. ISBN 978-0-321-31283-9 

参考文献

編集

外部リンク

編集