4.operating System
4.operating System
architecture
In this chapter you will learn about:
• Operating systems
• Interrupts and buffers
• Computer architecture and the von Neumann computer model
• The fetch–execute cycle
Operating systems
Very early computers were fed data whilst the machines were actually running. They
weren’t able to store programs; consequently, they weren’t able to run without human
intervention. In about 1945, John von Neumann developed the idea of a stored program
computer, often referred to as the VON NEUMANN ARCHITECTURE concept.
VON NEUMANN ARCHITECTURE
The basic diagram
Busses
Detailed Von-Neumann Architecture
• MAR memory address register
• MDR memory data register
• ALU arithmetic and logic unit
• PC program counter
• CIR current instruction register
Memory unit
The computer memory unit is made up of a number of partitions. Each partition
consists of an ADDRESS and its CONTENTS.
Processor
The PROCESSOR contains the ARITHMETIC AND LOGIC UNIT (ALU). The ALU allows
arithmetic (e.g. add, subtract, etc.) and logic (e.g. AND, OR, NOT, etc.) operations
to be carried out.
Control unit
The CONTROL UNIT controls the operation of the memory, processor and input/output
devices. It contains the CURRENT INSTRUCTION REGISTER (CIR) and the PROGRAM
COUNTER (PC). The CIR contains the current instruction during processing. The PC
contains the address of the next instruction to be executed.
Input and output devices
These are the main method of entering data into and getting data out of computer
systems. Input devices convert external data into a form the computer can understand
and can then process (e.g. keyboards, touchscreens and microphones). Output devices
show the results of
computer processing in a humanly understandable form (e.g. printers, monitors and
loudspeakers).
The fetch–execute cycle
To carry out a set of instructions, the processor first of all FETCHES some data and
instructions from memory and stores them in suitable registers. Both the address bus
and the data bus are used in this process. Once this is done, each instruction needs to
be decoded before finally being EXECUTED.
Fetch
In the fetch–execute cycle, the next instruction is fetched from the memory address currently
stored in the Program Counter (PC) and is then stored in the Current Instruction Register (CIR).
The PC is then incremented (increased by 1) so that the next instruction can be processed.
Execute
The processor passes the decoded instruction as a set of control signals to the
appropriate components within the computer system. This allows each instruction to be carried
out in its logical sequence.
stages that take place during the fetch–execute cycle