Skip to Content
詳解 組み込みシステム 第2版 ―高性能、高品質なソフトウェアを実現するデザインパターン
book

詳解 組み込みシステム 第2版 ―高性能、高品質なソフトウェアを実現するデザインパターン

by Elecia White, 大岩 尚宏
April 2026
356 pages
4h 48m
Japanese
O'Reilly Japan, Inc.
Content preview from 詳解 組み込みシステム 第2版 ―高性能、高品質なソフトウェアを実現するデザインパターン

6章アクティビティフローの管理

「2章 システムアーキテクチャの設計」では、システムを管理しやすいように分割する方法を検討しました。そして設計の本質とその理由について説明しましたが、本章ではその具体的な実現について説明します。

6.1 スケジューリングとオペレーティングシステムの基本

OSなしの組み込みシステムを構築するには、まずは既存のOSについて理解する必要があります。なおOSについては「6.5 参考」も参照してください。

6.1.1 タスク

コンピュータの電源を入れて、電子メールクライアントとWebブラウザ、コンパイラなどを起動したとして、プロセッサが1つであっても、これらは並行して動作しているように見えます。

[注記]

タスクとスレッド、プロセスは類似しています。RTOSによっては入れ替わる場合もありますが、教わった定義は、タスクはプロセッサの実行単位です。スレッドはタスクにメモリなどの必要なコストを加えたものです。プロセスは個別にコンパイルされた独自のメモリ空間を持つ実行単位です。スレッドとプロセスはOSが管理する概念で、OS上の単位となります†1

[†1] 訳注:Linuxにおいてもタスクとプロセスについては上記と同じですが、スレッドが異なります。Linuxにおけるスレッドとは主にpthread_create()からclone(CLONE_THREAD)を呼び出して作成された、いわゆるPOSIXスレッドです。呼び出し元の親プロセスとメモリを共有しており、親プロセスに属しているものの独立して動作できます。Linuxカーネルのスケジューラは、プロセスとスレッドを意識せず同等に扱います。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho

Publisher Resources

ISBN: 9784814401659Publisher Website