1.2 Flashcards
(33 cards)
What is an instruction set
A group of commands for a CPU in machine language.
What does CISC stand for
Complex instruction set
What is CISC
Use a full instruction set on the CPU, any instruction they need to be converted to machine code will be there.
Fewer registers
What does RISC stand for
Reduced instruction set
What is RISC
Small instruction set with only the most frequently used instructions are available
Adv of RISC
Less heat
Lower cost
Physically smaller
Lower power consumption
Pipelining works better as independent instructions can be carried out at the same time
Each instruction only needs one clock cycle
Simpler hardware
Disadv of RISC
More instructions to be carried out for one process
Runs at a lower clock speed
More programming code is needed
Compiler needs to do more work to translate from high level code to machine language
What uses CISC
Desktop computers
Laptop computers
What uses RISC
Smartphone
Tablets
Adv of CISC
More intensive tasks will do better with CISC
Less programming code
Compiler has to do little work to translate from high level code to machine language
Issues with CISC
Only 20% of instructions will be used, they all still need to be stored
Transistors use power and generate heat in turn, this needs additional cooling, this also takes up more space
A complex instruction takes more clock cycles to complete, this takes more time to process
Complex hardware making it more expensive than RISC
Cant support pipelining
What are the 4 segments the OS divides the RAM into
Stack segment, free memory, data segment, code segment
What does the stack segment store
Functions stored, changes size frequently, the stack segment can grow into free memory
What does the data segment store
Stores all variables used
What does the code segment store
Application code
What is an OS
A program which manages all of the software and hardware on the computer
Memory management
When the OS controls and coordinates a computers main memory
What is paging
A fixed, physical sized division of main memory, pages are numbered, if a page hasn’t been used for a while it is moved to virtual memory, if a segment spans multiple pages, all pages are moved to virtual memory
What is scheduling
The task of allocating CPU processor time amongst all running programs.
What is the purpose of scheduling
Processes as many tasks as possible in a given time
Makes maximum use of CPU time
It will try to minimise the delay between when the user requests something to be done and when that task is completed.
Makes maximum use of resources such as input-output devices
Is able to prioritise jobs
It will ensure that no task is left uncompleted for too long, even if they are low priority
Is able to alter priorities according to need
What are the types of scheduling algorithms
Round robin
First come first served
Shortest time remaining
Multi-level feedback queues
What is round robin
Each program in a queue is given a set amount of processing time, the first processes is loaded into main memory, if the process is completed in the allocated time then the next processes is loaded immediately, however, if the process is not finished before the time runs out, it is put at the back of the queue.
What are the advantages of round robin
It is simple to implement. Round Robin is a good algorithm if all the processes are more or less of similar priority and size.
What are the disadvantages of round robin
It does not take priority into account
It does not consider some processes are short and some are long