2. Introduction to Operating Systems Flashcards
What happens when a programs run?
The processor fetches instructions from memory, decodes the instructions and executes them.
What is virtualisation?
Taking a physical system and creating a virtual form of it.
What is an operating system?
It is a body of software that makes it easy to run programs, allows programs to share memory and enables programs to interact with devices.
What are resources?
Anything valuable such as CPU, memory and disk.
What is the result of virtualising CPU?
An illusion to processes where each of them seem to have an individual dedicated CPU.
How does memory work?
It is a just an array of bytes where we can read and write to store information.
What is the result of virtualising memory?
An illusion to processes where each of them seem to have an individual dedicated physical memory.
What is concurrency?
Working on many things at once in the same program.
What is a thread?
It is a lightweight function that runs in the same process, where they share the same memory space, data, code with other threads. The only thing they don’t share is the stack pointer.
What is persistence?
Managing files stored in the disk space to prevent ease of data loss in memory.
What is protection?
Ensuring that malicious behaviours do not affect other processes
What are the goals of an operating system?
- Provide high performance
- Protection
- Isolation
- Energy-efficient
- Security
- Mobility
What is batch processing?
Setting up a number of jobs and running them in a batch by computer operators.
What is a system call?
A mechanism to request a service from the operating systems with special pair of hardware instructions and hardware state.
What is a procedure call?
A standard function calling mechanism.W