編寫一程序,可以創建若干個虛擬進程,并對若干個虛擬進程進行調度,調度策略為時間片輪轉。
虛擬程序的描述:
虛擬指令的格式: 操作命令 操作時間
其中,操作命令有以下幾種:
l C : 表示在CPU上計算
l I :表示輸入
l O:表示輸出
l W:表示等待
l H:表示進程結束
操作時間代表該操作命令要執行多長時間
假設I/O設備的數量沒有限制
The project KEIL_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the Keil ARM toolchain.
The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module.
The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.
UART I/O and Memory Allocation Example for GNU
The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain.
The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module.
The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.