編寫一程序,可以創(chuàng)建若干個虛擬進(jìn)程,并對若干個虛擬進(jìn)程進(jìn)行調(diào)度,調(diào)度策略為時間片輪轉(zhuǎn)。
虛擬程序的描述:
虛擬指令的格式: 操作命令 操作時間
其中,操作命令有以下幾種:
l C : 表示在CPU上計算
l I :表示輸入
l O:表示輸出
l W:表示等待
l H:表示進(jìn)程結(jié)束
操作時間代表該操作命令要執(zhí)行多長時間
假設(shè)I/O設(shè)備的數(shù)量沒有限制
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.