Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (44)
What is the primary role of a device driver?
A device driver is software that allows the operating system to communicate with hardware devices.
What does the string "-rwxr-xr--" represent in the output of a folder listing?
The string "-rwxr-xr--" represents file permissions, indicating the owner has read, write, and execute permissions, the group has read and execute permissions, and others have read-only permissions.
What are system calls used for?
System calls are the interface between user programs and the operating system, allowing user-level processes to request services from the operating system.
What should the operating system do when a page fault occurs?
When a page fault occurs, the operating system must determine if the access is valid, locate the data on the disk, load the data into a free page frame in physical memory, and update the page table.
What is the main challenge illustrated by the dining philosophers problem?
The dining philosophers problem illustrates challenges in resource allocation without causing deadlock or starvation.
What is a process group?
A process group is a collection of one or more processes that can receive signals as a unit.
What are semaphores primarily used for?
Semaphores are used for managing resource allocation, mutual exclusion, and process synchronization.
Which data structure is generally considered better for file systems to keep track of free blocks, and why?
The bitmap is generally considered better because it allows for faster allocation and deallocation of blocks, especially when the disk is large.
What is the purpose of special files in the UNIX operating system?
Special files in UNIX provide an interface to device drivers, allowing programs to interact with hardware devices via standard file operations.
If the FAT (file allocation table) is destroyed, can the data be restored?
If the FAT is destroyed, data recovery is possible by reconstructing the table from the existing data on the disk, but it is complex and not always guaranteed.
What does the fork system call do?
The fork system call creates a new process by duplicating the calling process.
What is a device controller?
A device controller is a hardware component that manages a device and its operations.
How is CPU utilization calculated, and what does this number indicate?
CPU utilization is calculated by measuring the percentage of time the CPU is actively executing processes. This number indicates how efficiently the CPU is being used.
When is a process considered IO-bound?
A process is IO-bound if it spends more time waiting for I/O operations than doing computations.
What are the four principal events that cause processes to be created?
The four principal events that cause processes to be created are: 1. System initialization, 2. Execution of a process creation system call by a running process (e.g., fork()), 3. User request to create a new process, 4. Initiation of a batch job.
What is the purpose of the TLB (translation lookaside buffer)?
The TLB is a cache used by the CPU to reduce the time taken to access the page table by storing recent translations of virtual memory addresses to physical memory addresses.
What is the purpose of the R and M bits in a page table?
The R (Referenced) bit indicates whether a page has been accessed, and the M (Modified) bit indicates whether a page has been modified.
What is a mutex, and give an example of its application.
A mutex (mutual exclusion) is a synchronization primitive used to prevent multiple threads from simultaneously accessing a critical section of code. Example: Ensuring that only one thread updates a shared variable at a time.
What is the file allocation table (FAT), and do all known file systems use it?
The FAT is a file system architecture used to keep track of the allocation of disk space for files. Not all file systems use FAT; for example, NTFS and ext4 use different structures.
What techniques can be used to reduce the size of a large page table?
To reduce the size of a page table, techniques such as multi-level paging, inverted page tables, and hashed page tables can be used.
What is dynamic relocation in an operating system without virtual memory?
Dynamic relocation is adjusting addresses during program execution using a relocation register.
What does the fork system call do?
The fork system call creates a new process by duplicating the calling process.
What are the three properties of ideal memory?
The three properties of ideal memory are: 1. Large: Sufficient capacity to hold all data. 2. Fast: Short access time. 3. Inexpensive: Low cost per bit.
How are directed graphs used to model deadlocks?
Directed graphs, or wait-for graphs, are used to model deadlocks by representing processes and resources as nodes and the dependencies between them as edges. A cycle in the graph indicates a deadlock.
What is the meaning of the equation Σmi=1 (Ci / Pi) ≤ 1 in real-time scheduling?
The equation ensures that the CPU utilization does not exceed 100%, meaning all tasks can be scheduled within their deadlines.
What is the purpose of the Master Boot Record (MBR) on a hard disk?
The MBR contains the bootloader to initialize the operating system and the partition table that describes the partitions on the disk, including their locations and sizes.
What do the rectangles represent in a resource allocation graph?
The rectangles represent resource allocation or the state of processes.
What is the purpose of a DMA (Direct Memory Access) controller?
It allows devices to transfer data directly to/from memory without involving the CPU, improving system efficiency.
What do the "user" and "sys" values represent in the output of the time command?
The "user" value represents the CPU time spent in user mode, and the "sys" value represents the CPU time spent in kernel mode.
What is a daemon in the context of operating systems?
A daemon is a background process that handles requests for services such as web serving, printing, or scheduling tasks.
What happens when a page fault occurs?
The operating system must load the page from disk into memory and update the page table.
What is the problem if the quantum in the Round-Robin scheduling algorithm is too large?
It behaves like First-Come, First-Served (FCFS), reducing responsiveness.
What is the main advantage of the one-to-one multithreading model over the many-to-one model?
The one-to-one model maps each user thread to a kernel thread, providing better concurrency and utilization of multiprocessor architectures.
What are the three properties of an ideal memory system?
Large, Fast, Cheap
What is the kernel of an operating system, and what are its main functions?
The kernel is the core part of the operating system, managing system resources and hardware. Its main functions include process management, memory management, device management, and system calls handling.
What is stored in the text section of a process's memory layout?
The text section contains the executable code.
What is the key distinction between static and dynamic linking?
Static linking includes all necessary libraries in the executable at compile time, while dynamic linking includes only references to libraries, loading them at runtime.
What is stored in the heap section of a process's memory layout?
The heap section stores dynamically allocated memory.
What is the key difference between the one-to-one and many-to-one thread models?
The one-to-one model maps each user thread to a kernel thread, providing better concurrency and utilization of multiprocessor architectures, while the many-to-one model maps multiple user threads to a single kernel thread, limiting concurrency.
What is stored in the data section of a process's memory layout?
The data section contains global and static variables.
What are the basic states of a process?
The basic states of a process are: New, Ready, Running, Waiting, and Terminated.
What is the purpose of the linker in the context of executable files and libraries?
The linker combines object files into a single executable or library.
What are the four sections that typically make up the memory layout of a process?
The four sections that typically make up the memory layout of a process are: text, data, heap, and stack.
What is stored in the stack section of a process's memory layout?
The stack section stores local variables and function call information.