Mercurial > hg > Papers > 2018 > parusu-master
comparison paper/parallelism_gears.tex @ 74:ba0d87600522
Fix
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Feb 2018 22:38:31 +0900 |
parents | a75782dcaceb |
children | 4b49908418e2 |
comparison
equal
deleted
inserted
replaced
73:44eeae638406 | 74:ba0d87600522 |
---|---|
227 | 227 |
228 \section{Task(Context) 間の同期処理} | 228 \section{Task(Context) 間の同期処理} |
229 Gears OS では複数の Task(Context) から同じ Output Data Gear を修正する場合がある。 | 229 Gears OS では複数の Task(Context) から同じ Output Data Gear を修正する場合がある。 |
230 その際に適切な同期処理を行わずそのまま実行すると Output Data Gear の整合性が取れない場合がある。 | 230 その際に適切な同期処理を行わずそのまま実行すると Output Data Gear の整合性が取れない場合がある。 |
231 | 231 |
232 そこで 複数のTask 間の同期処理 Semaphore を用意した。 | 232 そこで 複数のTask 間の同期処理を行うために Semaphore の実装を行った。 |
233 Semaphore の Interface を \coderef{semaphoreInterface} に示す。 | 233 Semaphore の Interface を \coderef{semaphoreInterface} に示す。 |
234 | 234 |
235 \lstinputlisting[caption=Semaphore Interface, label=code:semaphoreInterface]{./src/semaphoreInterface.h} | 235 \lstinputlisting[caption=Semaphore Interface, label=code:semaphoreInterface]{./src/semaphoreInterface.h} |
236 | 236 |
237 Semaphore はある資源に対してアクセスできるスレッドの数を制限するものであり、P命令 と V命令がある。 | 237 Semaphore はある資源に対してアクセスできるスレッドの数を制限するものであり、P命令 と V命令がある。 |