U16 system software Flashcards
purpose of an operating system
1
Q
operating system
A
provides interface between users and hardware
2
Q
resources list
A
- CPU
- memory
- I/O devices
3
Q
resource management
A
- focuses on utilizing the resources and maximize their use
-deals with I/O operations
4
Q
direct memory access (DMA)
A
- DMA controller is used to give access to memory directly. it allows the hardware to access the main memory independently of the CPU
- frees up the CPU to allow it to carry out other tasks
- DMA initiates data transfer while CPU carries out other tasks
- once the data transfer is complete an interrupt signal is sent to the CPU from the DMA
5
Q
kernel
A
- responsible for communication between hardware, software and memory
- responsible for process, device and memory management
6
Q
how does the operating system hide the complexities of the hardware from the user
A
- provides interface e.g: GUI which helps to use the hardware
- uses device drivers to synchronize the hardware
7
Q
difference between program and process
A
- program is written code
- process is executing code
8
Q
multitasking
A
- to ensure multitasking operates correctly scheduling is used to decide which processes should be carried out
- ensures the best use of computer resources by monitoring each state of process
- kernel overlaps the execution of each process based on scheduling algorithms
9
Q
preemptive
A
when cpu is allocated to a particular process and if at that time a higher priority process comes then it is allocated to that process
10
Q
nonpreemptive
A
does not take any action until the process is terminated
11
Q
features of preemptive
A
- resources are allocated to a process for a limited time
- the process can be interrupted while it is running
- more flexible form of scheduling
12
Q
features of nonpreemptive
A
- once the resources are allocated to a process, the process retains them until it has completed its burst time
- process cannot be interrupted while running
- more rigid form of scheduling
13
Q
why does an operating system need to use scheduling algorithms
A
- to allow multitasking to take place
- to ensure fair usage of processer
- to minimize the amount of time users must wait for their results
- to keep cpu busy at all times
- to ensure fair usage of memory
- to ensure higher priority tasks are executed sooner
14
Q
ready state
A
- process is not being executed
- process is in the queue
- waiting for the processor’s attention/time slice
15
Q
running state
A
- process is being executed
- process is currently using its allocated processor time/time slice
16
Q
blocked state
A
- process is waiting for an event
- so it cannot be executed at the moment
- e.g: input/output