コード例 #1
0
ファイル: OSPhase3.py プロジェクト: monica-p/svos
from Memory import Memory
from globalHelp import *
from SystemQueue import SystemQueue
from CPU import CPU
from Printer import Printer
from Logger import Logger
#---------------------------- Global Variables ----------------------------------------------


CPU = CPU()

Memory.initialise()
SystemBuffer.initialise()
Printer.initialize()
Logger.initialize()

def main():
    channel.channel1.ChannelBusy = True
    channel.channel3.ChannelBusy = True
    channel.channel2.ChannelBusy = True

    while(not channel.ChannelIdle()):
        simulate()
        CPU.Process()
        CPU.IOInterrupt()


def simulate():
    busyList = []
    for ch in channel.channelList:
        if ch.ChannelBusy:
コード例 #2
0
ファイル: OSPhase3.py プロジェクト: monica-p/svos
from Memory import Memory
from globalHelp import *
from SystemQueue import SystemQueue
from CPU import CPU
from Printer import Printer
from Logger import Logger
#---------------------------- Global Variables ----------------------------------------------

CPU = CPU()

Memory.initialise()
SystemBuffer.initialise()
Printer.initialize()
Logger.initialize()


def main():
    channel.channel1.ChannelBusy = True
    channel.channel3.ChannelBusy = True
    channel.channel2.ChannelBusy = True

    while (not channel.ChannelIdle()):
        simulate()
        CPU.Process()
        CPU.IOInterrupt()


def simulate():
    busyList = []
    for ch in channel.channelList:
        if ch.ChannelBusy: