Fundamentals Of Operating System Flashcards
What is an operating system?
An operating system is a set of programs that control how a computer system works, especially how memory is used and how different programs work together.
What are some common examples of operating systems?
Common examples of operating systems include Windows, Linux, and macOS.
How does Cambridge University Press (2013) define an operating system?
Cambridge University Press (2013) defines an operating system as “a set of programs that control the way a computer system works, especially how its memory is used and how different programs work together.”
What is the Cambridge University Press (2009) definition of an operating system?
Cambridge University Press (2009) defines an operating system as “the set of programs that a computer uses to operate, store files, and communicate with devices and other computers.”
What is the Cambridge University Press (2011) definition of an operating system?
Cambridge University Press (2011) defines an operating system as “a program that controls the way a computer works, and that allows applications (programs for particular purposes) to work on it.”
How does the International Organization for Standardization (2015) describe an operating system?
The International Organization for Standardization (2015) describes an operating system as “software that controls the execution of programs and that may provide services such as resource allocation, scheduling, input-output control, and data management.”
What is the Merriam-Webster definition of an operating system?
Merriam-Webster defines an operating system as “software that controls the operation of a computer and directs the processing of programs (as by assigning storage space in memory and controlling input and output functions).”
What keywords can be used to categorize the tasks of an operating system?
Keywords include supporting computer operating nodes, organizing program management, providing a user interface, managing resources, monitoring the system, and ensuring system security.
What source does the course on operating systems follow for its structure?
The course follows the standards outlined in Modern Operating Systems by Andrew S. Tanenbaum (2015).
According to Tanenbaum (2015), what are the central tasks of an operating system?
The central tasks of an operating system, according to Tanenbaum (2015), are “to provide user programs with a better, simpler, cleaner model of the computer and to handle managing hardware resources.”
What role does hardware abstraction play in the function of an operating system?
Hardware abstraction allows the operating system to provide a simplified model of the computer, making it easier for user programs to interact with the hardware without managing its complexity directly.
What is the core building block of any computer system?
The core building block of any computer system is the processor or central processing unit (CPU).
What is the von Neumann cycle?
The von Neumann cycle is the continuous process by which the CPU fetches, decodes, and executes instructions until the computer is shut down.
Who developed the concepts behind the von Neumann architecture?
The von Neumann architecture was developed by Hungarian-American scientist John von Neumann in 1945.
What are the key elements of the von Neumann architecture?
The key elements are the central processing unit (CPU), main memory, input/output components, and the communication system.
What are the two main units of the CPU in the von Neumann architecture?
The CPU consists of the control unit and the arithmetic logic unit (ALU).
What is the role of the control unit in the CPU?
The control unit is responsible for executing the program, fetching instructions from memory, decoding them, and coordinating their execution.
What does the arithmetic logic unit (ALU) do?
The ALU performs arithmetic and logical calculations within the CPU.
What is the function of registers within the CPU?
Registers are fast buffers within the CPU that store the results of calculations temporarily for quick access.
What is the defining feature of the main memory in the von Neumann architecture?
The main memory features random access memory (RAM), allowing the CPU to read and write data and instructions in any order.
What role do input/output components play in the von Neumann architecture?
Input/output components handle communication between the system and the environment, such as with users or storage devices.
How does the communication system in the von Neumann architecture work?
The communication system uses bus systems (e.g., address bus, data bus) to facilitate communication between the CPU, main memory, and other components.
What are the five steps of the von Neumann cycle?
The five steps are: Fetch instruction, Decode instruction, Fetch operand, Execute instruction, and Store result.
What happens during the fetch instruction step in the von Neumann cycle?
The CPU loads a program instruction from the main memory for processing.
What is machine language, and why is it important in the decode instruction step?
Machine language is the numerical format in which instructions are stored in memory, and it is specific to each processor family.
What happens during the execute instruction step of the von Neumann cycle?
The arithmetic logic unit (ALU) performs the actual calculation, such as adding two numbers or jumping to another address.
What is instruction pipelining, and how does it improve CPU performance?
Instruction pipelining allows the CPU to process multiple instructions in overlapping stages, completing one instruction per clock cycle.
What is vector processing in modern CPUs?
Vector processing allows modern CPUs to perform calculations across a set of operands simultaneously, commonly used in applications like computer games and scientific simulations.
What are caches, and why are they important in modern CPUs?
Caches are layers of fast memory between the CPU and slower main memory, allowing the CPU to process data more quickly without being slowed down by memory access times.
What is a multicore system, and how does it differ from earlier CPU designs?
A multicore system consists of multiple logical CPUs (cores) on a single processor chip, allowing for parallel processing within a single physical processor.
What role does the operating system play in the von Neumann architecture?
The operating system manages and controls the execution of applications and facilitates the interaction between software and hardware in a von Neumann architecture.
What is the core of an operating system called, and in what mode is it executed?
The core of an operating system is called the kernel, and it is executed in a privileged mode (kernel mode).
What happens if an application tries to call privileged machine instructions directly?
An error occurs, which is handled by the operating system.
What is the distinction between user mode and kernel mode?
User mode restricts applications from directly accessing hardware, while kernel mode allows the operating system to execute privileged instructions to manage hardware safely.
How do applications interact with hardware if direct access is prohibited?
Applications interact with hardware through the operating system, using system calls encapsulated in system libraries.
What happens during an interrupt or exception in a CPU?
The program counter is loaded with a new address (usually in the kernel), and the CPU switches to kernel mode to handle the interrupt or exception.
What is the role of the interrupt controller in the CPU?
The interrupt controller manages and processes exceptions or interruptions by switching to the appropriate address in the kernel and saving the old execution thread.
How does the operating system support different operating modes?
The operating system supports modes like real-time operation, multi-user operation, batch processing, and virtualization to meet various computing needs.
What is the role of the operating system in managing program execution?
The operating system ensures that when one program finishes, another is executed, managing multiple programs and ensuring smooth transitions between them.
What kind of user interfaces do modern operating systems typically provide?
Modern operating systems provide graphical user interfaces (GUIs) for user interaction and command-line interfaces (CLIs) for administrators.
What is a device driver, and why must it be executed in kernel mode?
A device driver is a set of program code that controls communication between the computer and attached hardware. It must be executed in kernel mode to access the hardware directly.
What are the responsibilities of an operating system in user, device, and resource management?
The operating system manages user accounts, device access through drivers, and core resources like the CPU and memory, ensuring secure and efficient operation.
How does the operating system ensure system security?
The operating system protects against unauthorized access, prevents system crashes from program errors, and manages resources efficiently in multi-user environments.