What is memory management?
● Main memory is often not large enough to store all of the programs being used.
● Paging, segmentation and virtual memory are techniques used by the operating system to ensure memory is shared effectively by programs.
What is paging?
● Memory is split up into equal-sized sections
known as pages.
● Pages are swapped between main memory
and the hard disk as needed
What is segmentation?
● Memory is split up into logical sized divisions,
called segments.
● Segments vary in size
● Segments represent the structure and logical
flow of the program.
What is Virtual Memory?
What are Interrupts?
● Signals generated by software or hardware to indicate to the processor that a process needs attention.
● Interrupts have different priorities and this is considered when allocating processor time.
● They are stored within an abstract data structure called a priority queue in an interrupt register.
What are Operating Systems?
What is the Interupt Service Routine (ISR)?
● Processor checks the interrupt register at the end of each Fetch-Decode-Execute
cycle.
● If there is an interrupt exists with a higher priority to the current process
○ The current contents of the registers in the CPU are transferred into a stack.
○ The relevant interrupt service routine (ISR) is loaded into RAM.
○ A flag is set to signal the ISR has begun.
○ The flag is reset once the ISR has finished.
○ This process is repeated.
● If there are no interrupts with a higher priority to the current process
○ The contents of the stack are popped back into the registers
○ Fetch-Decode-Execute cycle resumes
What is scheduling?
● Operating system ensures all sections of programs being run (known as ‘jobs’) receive a fair amount of processing time using scheduling
What are the types of sceduling algorithms?
What are all the scheduling algorithms?
How does the round robin algorithm work?
What are the advantages and disadvantages of round robin?
How does the first come first served algorithm work?
What are the advatages and disadvatages of the first come first serve algorithm?
How does the multilevel feedback queues algorithm work?
This makes use of multiple queues, each which is ordered based on a different priority.
What are the advantages and disadvatages of the multilevel algorithm?
How does the shortest job first algorithm work?
What are the advantages and disadvantages of the shortest job first algoritm?
How does the shortest remaining time algorithm work?
The queue storing jobs to be processed is ordered according to the time left for completion, with the jobs with the least time to completion being serviced first.
What are the advantages and disadvantages of the shortest remaining time algorithm?
What are the types of Operating System?
Features of the distributed OS
Features of the embedded OS
Features of the Multi-tasking OS