computer organisation Flashcards
explain the machine instruction cycle
thats when a computer fetches the instruction from its memory and then executes it
first step in the fetch-execute cycle is fetching the instruction.
the CPU fetches this from the main memory (RAM) and stores
it in the CPU temporary memory, called the registers.
second step is decoding the instruction - CPU has codes like policemen do for what to do with the data.
explain it more detailed(the fetch execute computer cycle)
- fetch:
PC -> MAR (the adress of the next instruction is copied onto the MAR from PC) -> RAM -> (data is fetched using the address from MAR and sent to the MDR) MDR -> CIR (the instruction is stored in the MDR which is the copied into the CIR) -> - decode & execute:
CU (the instructions are then sent to the CU which makes changes to the ALU, ALU then executes the instruction nd stores it in the accumulator if needed.) -> - store:
Accumulator (stores the results of the executed instruction)
from where to where is the address bus?
from MAR to Memory
from where to where is the data bus?
from ALU or memory to the Instruction decoder
what are the features of the memory in CPU
no permanent (only registers)
RAM features?
volatile
what is primary storage?
cache and RAM
whats the secondary storage?
hard drive
what is offline storage?
CD-RW (cede)
USB thumb drive
tape drive
whats the hierarchy of operating system?
under all software there are application (7 types but never mentioned which ones so I assumed that that wont be on the test) software and system software (operating system, utilities, drivers and libraries)
what are the functions of an operating system
provides a user interface
does memory management
does peripheral management
allows multi-tasking
provides security
present user interface
(OS provides) a link between the user and the computer hardware
some types of user interfaces:
- graphical User Interfaces (GUIs) that have menus and icons,
- command Line Interfaces (CLIs) where the user types in codes,
- natural Language Interface (NLIs) where the user speaks to the
interface
- menu Based Interface (MBIs) which gives the user a selection of
options.
I ADVICE YOU TO GOOGLE EACH AND MAKE A SCETCH OF IT
present memory management
keeping track of storage divices like HDD and controlling which application has access to which area of memory (RAM)
each location in memory can be read, modified, and written to by the OS, when the memory location is full the OS sends a confirmation message. similarly, the OS provides file management services by sorting out where data is stored on the disk drives and memory.
The OS allows users to organise files in folders as well as to copy and delete files.
examples are file manager or finder on mac and memory manager
present peripheral management
keyboard, mouse, monitor and printers are controlled through device drivers.
a device driver is a software program which allows hardware devices to be used by the OS. They act as translators between the devices and the computer system.
example would printing