tags:
- operating-system
- software
- article
- notes
source: https://www2.it.uu.se/education/course/homepage/os/vt18/module-1/definitions/
created: 2024-12-16
What is the Central Processing Unit (CPU)?
The CPU is the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control, and I/O operations specified by the instructions.
What is a register?
A register is a quickly accessible location available to a computer's CPU.
What do registers consist of?
Registers consist of a small amount of fast storage.How many registers does a Central Processing Unit (CPU) have?
A CPU has a small number of registers.
What is memory?
Memory is the computer hardware integrated circuits which store information for immediate use in a computer.
What is another term for memory?
Another term for memory is primary storage.The memory is much ... than the CPU register but much ... in size.
The memory is much slower than the CPU register but much larger in size.
What three things does a typical computer system consist of?
Three things a typical computer system consists of include:
Why do the CPU and device controllers compete for memory cycles?
The CPU and device controllers compete for memory cycles because they execute in parallel.What is provided to ensure orderly access to the shared memory?
To ensure orderly access to the shared memory, a memory controller is provided.What is the function of the memory controller?
The function of the memory controller is to synchronize the access to the memory.
What is Input/Output (I/O)?
I/O is the communication between an information processing system, such as a computer, and the outside world, possibly a human or another information processing system.
What is considered Input/Output (I/O) when it comes to computer systems?
When it comes to computer systems, I/O is considered to be any transfer of information between the CPU or memory and any of the external devices.
What is an Operating System (OS)?
An OS is system software that manages computer hardware and software resources and provides common services for computer programs.
What does the Operating System control and coordinate, and for whom?
The OS controls and coordinates the hardware for its use among the various programs of the various users on the system.
What does the Operating System (OS) need to do in order to execute a program?
In order to execute a program the OS needs to create a process and make it execute the program.
What is a program?
A program is a set of instructions which is in a human-readable format.What type of entity is a program and what does it require?
A program is a passive entity which requires storage space.What is an executable?
An executable is a compiled form of a program.What two things does an executable consist of?
The two things an executable consists of include:
- Machine instructions.
- Static data.
What type of entity is an executable and what does it require?
An executable is a passive entity which requires storage space.What is a process?
A process is a program loaded into memory which is either executing or waiting.For how long does a process typically execute and when does it stop?
A process typically executes for a short time before it finishes or needs to perform I/O.What type of entity is a process and what does it require?
A process is an active entity which requires resources such as CPU time and memory.
What is the CPU context defined by at any point in time?
At any point in time, the CPU context is defined by the values of all the registers in the CPU.
What is another term for the CPU context?
Another term for the CPU context is the CPU state.
What does a task context consist of?
A task context consists of the minimal set of data used by a task (like a process or thread) that must be saved to allow it to be interrupted and continued later from the same point.
What is a kernel?
A kernel is a computer program at the core of an operating system that has complete control over everything in the system.
What are the two modes provided by the hardware?
The two modes provided by the hardware are:
Why does the hardware provide two modes to run processes?
The hardware provides two modes to run processes to protect the operating system from user processes.What is it called when you can run processes in user mode or kernel mode?
When you can run processes in user mode or kernel mode, it is called dual mode operation.What restrictions does dual mode operation place?
Dual mode operation places restrictions on the type and scope of operations that can be executed by the CPU.
What does synchronous mean?
Synchronous means happening, existing, or arising at precisely the same time.
What does asynchronous mean?
Asynchronous means not happening, existing, or arising at precisely the same time.
When is an event synchronous?
An event is synchronous when it occurs at the same instruction every time the program is executed with the same data and memory allocation.
What is a synchronous event directly related to?
A synchronous event is directly related to the instruction currently being executed by the CPU.
When is an event asynchronous?
An event is asynchronous when it is not directly related to the instruction currently being executed by the CPU.
What is the general purpose of exceptions and interrupts?
The general purpose of exceptions and interrupts is to notify the CPU of events that need immediate attention during program execution.
What are exceptions and interrupts?
Exceptions and interrupts are events which alter the normal sequence of instructions executed by the processor.
What are exceptions used for?
Exceptions are used for handling internal program errors.
What is another term for an exception?
Another term for an exception is a trap.What are exceptions produced by and when?
Exceptions are produced by the CPU control unit while executing instructions.
What are interrupts used for?
Interrupts are used for notifying the CPU of external events.
What are interrupts produced by and when?
Interrupts are produced by hardware devices outside of the CPU at arbitrary times with respect to CPU clock signals.
What happens when an exception or interrupt occurs?
When an exception or interrupt occurs, execution transitions from user mode to kernel mode where it is handled.
What happens when an exception or interrupt is handled in kernel mode?
When an exception or interrupt is handled in kernel mode, execution resumes in user space.
What are system calls used for?
System calls are used for requesting services from the operating system for a user mode process.
How are system calls implemented?
System calls are implemented using a special system call exception.