Made with ScholarlyMake flashcards like these from your own notes
Question:What is an operating system (OS)?
Answer:System software that manages hardware and provides services for applications
Question:What is one primary role of an OS besides running programs?
Answer:To manage resources (CPU, memory, I/O) fairly and efficiently
Question:Name three common examples of operating systems.
Answer:Windows, Linux, macOS
Question:What does the OS do in multitasking environments?
Answer:Allows multiple programs to run in their own space and communicate
Question:What is a system call?
Answer:A programmatic request by a process to the kernel for a service
Question:What is the kernel’s main purpose?
Answer:Bridge between software and hardware; manages resources
Question:Which kernel structure runs most services in kernel space and is fast but hard to maintain?
Answer:Monolithic structure
Question:What is a micro-kernel?
Answer:A kernel that runs only essential services in kernel space; other services run in user space
Question:What is a real-time OS (RTOS) designed to guarantee?
Answer:Timely task completion with predictable scheduling
Question:Differentiate hard RTOS from soft RTOS.
Answer:Hard RTOS has strict deadlines; soft RTOS allows some flexibility
Question:What is the difference between a process and a thread?
Answer:Process is an executing program with its own memory; a thread is a path of execution within a process sharing memory
Question:What is a Process Control Block (PCB)?
Answer:A data structure holding process information (PID, state, CPU info, etc.)
Question:Which scheduling metric measures total time from submission to completion?
Answer:Turnaround time
Question:What is the formula for turnaround time?
Answer:Turnaround Time = Waiting Time + CPU Time + I/O Time
Question:What does CPU utilization aim to maximize in scheduling?
Answer:Keep the CPU as busy as possible
Question:In FCFS scheduling, what is a major drawback?
Answer:Convoy effect (long first job can delay others)
Question:What is the key idea of Shortest Job First (SJF) non-preemptive scheduling?
Answer:Always run the process with the smallest burst time next
Question:What issue can arise with SJF scheduling?
Answer:Starvation of long processes
Question:What is a system call example used to open files?
Answer:open()
Question:What does the fork() system call do in many OSs?
Answer:Creates a new process by duplicating the calling process
Question:What is the role of memory management in an OS?
Answer:Allocate and deallocate memory to processes; manage paging/virtual memory
Question:What is the purpose of I/O device management?
Answer:Coordinate use of input/output devices and drivers
Question:What is the concept of virtual memory?
Answer:A technique to use disk space as an extension of RAM
Question:What is the difference between user-level threads and kernel-level threads?
Answer:ULT are managed by user space; KLT are scheduled by the kernel
Question:What is a hybrid-many-to-many threading model?
Answer:Multiple user threads mapped to multiple kernel threads
Question:What is booting in the context of OS?
Answer:Starting a computer and loading the OS into memory
Question:What is a dual-boot setup?
Answer:Installing two OSes on the same machine with a boot manager to choose at startup
Question:What is the role of system software like the OS?
Answer:Provide a platform for applications and manage hardware resources
Question:What is the purpose of file system management?
Answer:Create, read, write, and organize files with permissions
Question:What does I/O management handle in OS functions?
Answer:Coordinating device communication, buffering, and queues
Question:What is the main takeaway of layered OS structures?
Answer:Layers provide separation of concerns and easier debugging
Question:Name a classic example of a layered OS design?
Answer:THE OS (early example)
Question:What is memory management responsible for in an OS?
Answer:Managing memory locations and allocation for processes
Question:Why is security important in an OS?
Answer:Protects data and resources from unauthorized access
Question:What is the purpose of an interrupt in system operation?
Answer:Signals the CPU to attend to an event (like I/O completion)
Question:What is a bootstrap program?
Answer:Code that runs when the computer is powered on to start the OS
Question:What is dual booting useful for?
Answer:Developers/testers or users needing features from different OSes
Question:What is the role of the kernel regarding hardware access?
Answer:Manages access to CPU, memory, devices; enforces protection
Question:Which OS component provides the user interface?
Answer:User Interface (UI) with CLI or GUI
Question:What is an important advantage of modular OS design?
Answer:Flexibility to upgrade or load/unload modules
Question:What is the difference between preemptive and non-preemptive scheduling?
Answer:Preemptive can interrupt a running process; non-preemptive cannot
Question:Which system type emphasizes predictable timing for tasks?
Answer:Real-Time Operating System (RTOS)