0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

割り込み処理

Posted at

割り込み処理の仕組み

割り込みは、実行中のプログラムを中断し、緊急度の高い別の処理を行う仕組み。

1.割り込み発生時点の状態を保存
2.割り込みの種類を判定
3.割り込み処理ルーチン
4.割り込み発生時点の状態へ復帰

割り込みの種類

内部割り込み

実行中のプログラムに起因する割り込み(CPU内部で発生)

プログラム割り込み

プログラム実行中のエラーにより発生。

SVC(スーパーバイザーコール)割り込み

処理プログラムから監視プログラム(オペレーションシステム)に対して要求する割り込み(入出力要求の発生やプログラムの完了)

外部割込み

計算機システム外からの割込み

入出力割り込み

入出力動作の完了(異常を含む)、機器の状態変化(用紙切れなど)

機械チェック割り込み

CPUの誤動作、主記憶装置の障害、電源の異常など。

タイマ割り込み

CPU割り当て時間のオーバー

コンソール割り込み

オペレータからの介入

出典

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?