1.2.1 Systems software - Gurjot Flashcards
what is an operating system
a collection of programs that work together in order to provide an interface between the user and the computer
state some features that an operating system provides
- memory management
- file management
- utility software
- user interface
what is paging
when memory is split up into equal sized sections (called pages). these can be swapped between main memory and hard disk as needed.
what is segmentation
splitting up memory into logical sized divisions (called segment).
what is virtual memory
using a section of hard drive to act as RAM when the space in the main memory in insufficient. sections currently not in use are moved into virtual memory through paging
what are the issues with the 3 ways of memory management
it causes disk thrashing (when the computer freezes as pages are being swapped too frequently between hard disk and main memory.)
what are interrupts
signals generated by software or hardware to indicate to the processor that a process needs attention
describe the steps of the interrupt service routine
- Interrupt Request: Device signals the CPU
- Acknowledgement and Save Content: CPU finishes current task, saves state to the stack
- Identify and Execute ISR: CPU identifies interrupt source and runs ISR
- Restore and Resume: CPU restore saved context and resumes main program
what is pre-emptive scheduling
jobs are actively made to start and stop by the operating system
give examples of pre-emptive scheduling
- multi level feedback queues
- shortest time remaining
- round robin
what is non pre-emptive scheduling
once a job is started, its left alone until completed
give examples of non pre-emptive scheduling
- first come first served
- shortest job first
describe round robin scheduling
each job is given a section of processor time, if not completed in the time, its put back in the queue.
describe first come first served
jobs are processed in order of which entered the queue first
describe multi level feedback queues
makes uses of multiple queues, ordered based on different priority.