Untitled Deck Flashcards
What is RISC?
RISC stands for Reduced Instruction Set Computer, characterized by a simple, small instruction set and fast execution.
What is CISC?
CISC stands for Complex Instruction Set Computer, which has a complex, large instruction set and fewer lines of code.
What is the role of an Operating System (OS)?
An Operating System manages hardware and software resources, handles multitasking, and improves efficiency.
What is the difference between Supervisor mode and User mode?
Supervisor mode is for critical tasks with greater control, while User mode is for regular tasks.
What are Hypervisors?
Hypervisors are software that create and manage virtual machines. They can be bare metal, running directly on hardware, or hosted, running on top of an existing OS.
Define Program, Process, and Thread.
A Program is a set of instructions on disk, a Process is a running instance of a program, and a Thread is the smallest unit of execution within a process.
What is the difference between PCB and TCB?
PCB stands for Process Control Block, which contains process information, while TCB stands for Thread Control Block, which contains thread-specific information.
What are the states of a Process?
The states of a Process include New, Ready, Running, Waiting, Terminated, and Suspended.
What are the types of Schedulers?
Schedulers include Long-term (admits jobs, manages system load), Medium-term (suspends/resumes processes), and Short-term (allocates CPU to ready processes).
What is Inter-Process Communication (IPC)?
Inter-Process Communication (IPC) is a mechanism for processes to communicate, such as using Pipes.
What is the Banker’s Algorithm?
The Banker’s Algorithm is used for resource allocation and deadlock avoidance, ensuring safe states where all processes can complete.
What are the requirements of Memory Management?
Memory Management requires relocation, protection, sharing, and logical/physical organization.
What is Virtual Memory?
Virtual Memory provides flexibility, multitasking, and isolation.
What is a Page Fault?
A Page Fault occurs when a page is not in memory, causing the process to pause while the page is loaded from disk.
What is a Page Map Table (PMT)?
A Page Map Table (PMT) maps virtual addresses to physical addresses.
What is Round Robin Scheduling?
Round Robin Scheduling allocates a fixed time slice for each process, ensuring fair CPU allocation.
What are the conditions for Deadlock?
Deadlock conditions include Mutual exclusion, Hold and wait, No preemption, and Circular wait.
What is the Critical Section Problem?
The Critical Section Problem ensures that only one process accesses a shared resource at a time.
What are Semaphores?
Semaphores are synchronization tools with operations like Wait() (decreases semaphore) and Signal() (increases semaphore).
What is the Producer/Consumer Problem?
The Producer/Consumer Problem involves a producer adding items and a consumer removing items, often solved using semaphores.
What is Starvation in process management?
Starvation occurs when a process waits indefinitely for resources or CPU.
What is the Dining Philosophers Problem?
The Dining Philosophers Problem involves philosophers needing forks to eat, solved using semaphores to avoid deadlock.
How is Cache Access Time calculated?
Cache Access Time is calculated using cache hit ratios and access times.
Example: Cache1 (90% hit, 0.2 units), Cache2 (70% hit, 0.1 units), RAM (1 unit). Average access time = 0.19 units.
What is Amdahl’s Law?
Amdahl’s Law describes the potential speedup of a task using multiple processors based on the sequential and parallel portions.
Example: Sequential portion (s) = 60%, Time with 5 processors = 0.68 units, Maximum speedup = 1.67x.
What are the types of Cache Memory based on levels?
Cache Memory types based on levels include L1 (fastest, smallest), L2, L3, and L4 (largest, slowest).
What are the types of Cache Memory based on function?
Types of Cache Memory based on function include Instruction Cache, Data Cache, and TLB (Translation Lookaside Buffer).
What are the types of Cache Memory based on mapping?
Cache Memory can be Direct Mapped, Fully Associative, or Set Associative.
What are the types of Cache Memory based on write policy?
Cache Memory types based on write policy include Write-Through, Write-Back, and Write-Around.
What are the key differences between Addressable Caches and Content Addressable Caches?
Addressable Caches are slower with larger capacity and energy-efficient, while Content Addressable Caches are faster with smaller capacity and higher power consumption.