1.2.1) Systems Software Flashcards
(64 cards)
What is an operating system?
System software that manages computer hardware and provides common services for computer programs, acting as an interface between users and the machine.
Why is an OS needed?
Most software isnt written to interact with computer hardware.
What does are the main functions of an operating system?
- Resource management
- File management
- Interrupt handling
- Security
- Runs software
- User interface
- Provides utilities
What resources does an OS manage?
the CPU, memory, disk drives and printers
What does the OS do to manage tasks/resources?
Allocate resources to specific tasks and ensure that they are used effectively. They handle:
* how much memory to allocate each application
* when they get to use the CPU
* how to handle data being read from/written to memory
How does the OS help to manage RAM?
moves instructions from non volatile memory (such as secondary storage devices) into RAM to make them easier to access.
In memory management what are the OS’s main roles?
- Identifying status-Marking the empty/occupied status of memory
- Allocating memory-Identifies, reserves and allocates the correct amount of memory for data being stored
- Prioritising processes-Prioritises commonly used processes
What is logical address space vs. physical address space?
Logical address space is used within a program to declare the memory needed to run the program, physical address space is the actual memory space in the hardware.
What is memory management?
The OS takes the logical address space defined in the program and maps it to physical address space.
What are the different methods of memory management?
- Paging
- Segmentation
- Virtual Memory
What are the benefits of memory management? (3)
- Enables multitasking as multiple programs can run
- Maintains security as it restricts a program from accessing other programs memory
MAKES COMPUTER RUN SMOOTHLY
What is paging?
Physical address space is divided into pages of equal size and there are allocated/deallocated to programs based on what the user is using.
What is Segmentation?
The physical address space is sorted into blocks of various sizes depending on the amount of space an application needs.
Advantages of paging
- Efficient memory utilisation
- Supports visual memory
Disadvantages of Paging
Can lead to internal fragmentation, can waste space if each page is not full
Advantages of Segmentation
- More space efficient than paging
- Enables sharing data between applications
Disadvantages of Segmentation
- Can lead to external fragmentation
- Potential security issues
What is Internal fragmentation?
When a process is allocated more memory space than it needs, leading to wasted space within the allocated block
What is external fragmentation?
When memory is scattered in small, non contiguous blocks, leaving gaps.
What is Virtual memory?
When parts of a process not currently being used are swapped from RAM to the hard disk and vice versa.
When is Virtual memory used?
When physical space in RAM is limited.
Advantages of memory management
- Allows for more extensive programs to be run
- Facilitates effective multitasking
Disadvantages of Virtual memory
Can slow down system performance as secondary storage is slow to access.
What are the different types of scheduling?
Round robin, First come first served, shortest job first, shortest time remaining, multi level feedback queue