Help us understand the problem. What is going on with this article?

マルチスレッドプログラミングのデザインパターンをSwiftで書いてみた。

More than 3 years have passed since last update.

「Java言語で学ぶデザインパターン入門 マルチスレッド編」(結城 浩)を参考にSwiftでマルチスレッドプログラミングを書いてみました。

  • Single Threaded Execution (同時にできない)
  • Immutable (不変)
  • Guarded Suspension (用意できるまで待つ)
  • Balking (用意できないならやめる)
  • Producer-Consumer (生産者と消費者をわける)
  • Read-Write Lock (書く人は一人、読むのは誰でも)
  • Thread-Per-Message (処理を他のスレッドに任せる)
  • Worker Thread (スレッドを貯めておいて仕事を振る)
  • Future (任せておいた仕事の結果を同期的に受け取る)
  • Two-Phase Termination (適切な終了処理)
  • Thread-Specific Storage (スレッド毎に保存できる領域を確保しておく)
  • Active Object (自律的なオブジェクト)

コードは以下に置いてあります。
https://github.com/KatagiriSo/MultiThreading

KatagiriSo
iOSフリーランスエンジニア。お仕事募集してます。 数理科学とプログラミングもくもく会 http://map.connpass.com/ 技術ブログ http://rodhos.hatenadiary.jp/ 最近の興味:機械学習、量子論
http://rodhos.info/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした