Unit 2 Processes Flashcards
What is a process?
A process is a program under execution.
What is meant by platform?
A particular combination of hardware and operating system.
What is the difference between source code and a process?
Source code is the static code, an abstraction of the task that needs to be carried out. A process is the dynamic execution of that code, interacting with the underlying platform.
What are the key requirements of an operating system?
To maximise the use of resources.
To mediate the sharing of resources.
To keep the system responsive to all users.
What is the difference between cooperative and preemptive multitasking?
Cooperative - writing a programme in such a way that it allows other programs to run. Not so common.
Preemptive - when the operating system requires one process to give up access to resources to allow another process to run ( as long as it is safe to do so.
What is the role of the Runtime Environment
Load and execute the program, organise its storage and how it interacts with software libraries and hardware, as well as removal from memory when it has done
What are registers
Fastest parts of memory. Have a data width of 32 or 64 bit. Used by the CPU to hold an instruction plus the data it works on during a fetch-execute cycle.
What is held in the RAM?
This is the main storage for processes and their data.
What is Disk Storage?
This is the virtual memory . It is persistent.
What are the functions of the CPU?
- Read and write binary from and to memory.
- Perform arithmetical calculations on those numbers.
- To determine what instructions come next, this may be based on a condition.
Describe the Fetch-Excecute Cycle.
The program counter tracks which instruction is needed next from a list of instructions held in memory.
Fetch - get the next instruction and place it in an ‘instruction register’.
Execute - the instruction to completin without interruption using register for storage. The program counter is then updated.
What factors influence the speed of the CPU?
- The data width of the bus.
- The size of the data the CPU can operate on.
- CPU clock speed.
- Speed and size of various parts of memory.
What does the system bus do ?
It allows the CPU to communicate with memory and with devices through their respective device controllers.
Name the three software interfaces that link a user program to a device controller.
- The interface between code and runtime environment (library calls).
- Between runtime environment and OS (system calls)
- Between OS and device controllers (device calls)
What is the point of a device driver?
The device driver resides in the OS, it translates high level requests from the OS into lower level requests to the device controller.