pthreadはスケジューリングがコオペレイティブなのでtrylockみたいなのでプロセッサを握ったままにしてると他の処理が回らなくなる。どうしてもそうする必要があるのならプリエンプトしてくれるLinuxのスレッドを使う方がいいが、その場合複数コンテキストが本当に同時に動くので本気でで競合状態に対応する必要がある。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00