Chapter 8. Databases Flashcards
What is an operating system (OS)?
- Software that manages hardware resources and provides services for computer programs.
- Acts as an intermediary between users and the computer hardware.
What are the main functions of an operating system?
- Process management: Handles the execution of processes.
- Memory management: Manages system memory allocation.
- File system management: Controls the reading and writing of data to storage devices.
What are examples of popular operating systems?
- Windows, macOS, Linux, Android, iOS.
What is a process in the context of operating systems?
- An instance of a program that is being executed.
- Includes the program code and its current activity.
What is multitasking in operating systems?
- The ability of the OS to execute multiple processes concurrently.
- Increases the efficiency of the CPU by scheduling tasks.
What is the role of the kernel in an operating system?
- The core component of the OS that manages system resources and communication between hardware and software.
- Provides basic services such as memory management and process scheduling.
What are the differences between a monolithic kernel and a microkernel?
- Monolithic kernel: All OS services run in kernel space, leading to better performance.
- Microkernel: Only essential services run in kernel space, improving modularity and stability.
What is the purpose of device drivers?
- Software that allows the operating system to communicate with hardware devices.
- Translates OS commands into device-specific instructions.
What is a user interface in the context of operating systems?
- The means by which users interact with the computer system.
- Types: Command-line interface (CLI), Graphical user interface (GUI).
What is virtual memory in an operating system?
- A memory management technique that uses a portion of the hard drive as if it were RAM.
- Allows for larger applications to run on systems with limited physical memory.
What is the purpose of the file system in an OS?
- Organizes and manages data storage on a device.
- Provides a way to store, retrieve, and update data.
What are common file systems used in operating systems?
- NTFS (Windows), HFS+ (macOS), ext4 (Linux), FAT32 (various).
What is process scheduling in an operating system?
- The method by which the OS decides the order in which processes are executed.
- Aims to maximize CPU efficiency and ensure fairness among processes.
What is the difference between preemptive and non-preemptive scheduling?
- Preemptive scheduling: The OS can interrupt and switch between processes.
- Non-preemptive scheduling: Once a process starts, it runs to completion without interruption.
What is a deadlock in operating systems?
- A situation where two or more processes are unable to proceed because each is waiting for the other to release resources.
- Can cause the system to become unresponsive.