[OS] CH1-5 Operating System Concepts
3340 ワード
Processes
実行されるプログラム
→ instance of a program being executed
→同じプログラムを別のプロセスで実行することもできます.各プロセスは分離&独立しています.
Linux
ps -auwwx
→ 모든 process 목록
→情報交換をするには、常にオペレーティングシステムを通して
1. Process Management
:複数のプログラミングでプロセスを一時停止→再実行
のプロセスでは、他のプロセスの使用時にコンテンツが失われます.
→CPU状態は、再起動時に直ちに停止した状態から起動するように保存する必要があります
e.g. registers, stacks, ...
2. Process Operations
create a process, delete a process
e.g.command解釈器/shellというプロセスが端末からコマンドを発行する
→ユーザがコンパイルコマンドを発行する
→Shellで実行可能な新しいフローのみをスキャンする
→コンパイル後自動終了のシステムコール
suspend, resume, clone process
inter-process communication/synchronization
:関連付け、コラボレーションプロセス間の通信、同期
サブプロセスの作成
Memory Management
1. RAM primary memory
: directly accessed storage for CPU
2.オペレーティングシステムがすべきこと
プログラムにメモリ領域を割り当てる
割り当てられたメモリの回収
Address space management
: virtual memory systems
ページ・テーブルによる物理から仮想へのマッピング
各プロセスにはどのくらいのメモリが割り当てられますか?
メモリからプロセスを削除するのはいつですか?
File System
: convenient abstraction of disks & I/Os
file
: a basic long-term storage unit
→persistent infoのcollection
directory
: a special kind of file
→メタデータを含むファイル名
1. Operations
file, directory creation, deletion
manipulation of files, directories
e.g. read, write, extend, rename, protect
copy, lock
会計、割当
indexing, search
file versioning
2. Mounting
:UNIXでCD-ROMまたはDVDに接続されているファイルシステムマスターツリー
3. Special File
:I/Oデバイスをファイルのように見せる
block special file
:ディスクなどの任意のアクセス可能なブロックを含むデバイスのモデリング
character special file
:プリンタ、モデムなど、文字列を受け入れたり出力したりするデバイスの型番
e.g.
I/O
OSプロバイダ(ユーザー、システム)とデバイス間の標準インタフェース
: file system - disk, sockets - network, frame buffer - video
device driver
: routine that interacts with specific device type
→ encapsulates device-specific knowledge
e.g.デバイスを初期化しますか?i/oクエリー?割り込みとエラーの処理?
Shell
→ command interpreter
a particular program that handles the interpretation of users's commands and help to manage processes
command解釈器はオペレーティングシステムの標準部品である可能性があります
UNIX
: non-privileged process that provides an interface to user
MAC OS
: no command language
Reference
この問題について([OS] CH1-5 Operating System Concepts), 我々は、より多くの情報をここで見つけました https://velog.io/@woo0_hooo/OS-CH1-5-Operating-System-Conceptsテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol