1.2 Software and software development Flashcards
What is an operating system?
a collection of programs that provide an interface between user and computer.
What features do operating systems provide?
Memory management; Resource management; file management; input/output management; interrupt management; utility software; security; user interface.
What is memory management?
How the memory in the RAM is divided and identified by paging, segmentation and virtual memory
What is paging?
Splitting memory into equal sized physical divisions called pages.
What is segmentation?
Splitting memory into logical divisions called segments that represent the structure and flow of the program.
What are the similarities of paging and segmentation?
They allow the programs to efficiently use space in memory
What are the differences of paging and segmentation?
Pages are fixed size and fit into sections of memory , segments vary in size and are made of complete sections of memory.
What dose virtual memory do?
it uses a section of the hard drive acts as RAM when main memory doesn’t have enough space. sections of the program not currently in use are temporally moved to virtual memory.
Whats the downside to using virtual memory excessively?
Disk thrashing; when pages are being swapped between hard disk and main memory, as it takes a long time to transfer them.
What is resource managment?
scheduling
What is Scheduling?
Allowing sections of programs to be run and receive a fair amount of processing charity.
What are the two types of scheduling algorithms?
Pre-emptive and Non pre-emptive.
What are pre-emptive algorithms?
jobs are actively started or stopped by the operating system.
E.g. multilevel feedback queues, shortest remaining time, round robin
What are Non pre-emptive algorithms?
Once a job is started, it is left alone until it is completed
E.g. first come first served, shortest job first
What is the Round robin Scheduling algorithms?
each job has a section of processor time within which it is allowed to execute. longer jobs will take longer and job priority will not be taken into account.