Docsity

Memory, Cache and Virtual Memory - Quiz #3 Study Guide | CIT 595, Quizzes of Computer Science

Toggle sidebar
bg1
CIT 595 โ€“ Quiz 3 Guide
Memory
Memory Interleaving
Memory Alignment and Byte Addressing
Endianess
Types of RAM: DRAM vs. SRAM differences
Why use Memory Hierarchy?
Locality principles
Cache
Types of mapping scheme: Direct, Fully-Associative Cache, Set-Associative Cache, their
advantages and disadvantages
Know how the address is split into word, block/set, and tag?
Replacement policies for set and fully associative: LRU (Pseudo LRU), Random
What does mean when cache line is valid? Dirty?
What the difference between write-through and write-back write policies?
What does it mean to have cache/miss or hit?
Virtual Memory(VM)
What is the motivation for VM
Difference between Virtual Address (VA) and Physical Address (PA)?
Benefits: Multiprogramming, Isolation and Protection
Paging Technique:
๎šƒ What is page? What is a page frame? Page offset?
๎šƒ What is a page table? Where is the table store?
๎šƒ Address Translation from VA to PA
๎šƒ What is a page fault?
๎šƒ Valid, Dirty, Page Replacement and Write policies (similar to cache)
๎šƒ Replacement policies: LRU, FIFO
๎šƒ Problem with paging scheme: Which fragmentation problem?
TLB:
๎šƒ Why use it?
๎šƒ What does it store?
๎šƒ How does TLB, Cache and Main Memory and Disk Interact in general?
Effective Access Time calculation
pf2

Partial preview of the text

Download Memory, Cache and Virtual Memory - Quiz #3 Study Guide | CIT 595 and more Quizzes Computer Science in PDF only on Docsity!

CIT 595 โ€“ Quiz 3 Guide

Memory

Memory Interleaving Memory Alignment and Byte Addressing Endianess Types of RAM: DRAM vs. SRAM differences Why use Memory Hierarchy? Locality principles

Cache Types of mapping scheme: Direct, Fully-Associative Cache, Set-Associative Cache, their advantages and disadvantages Know how the address is split into word, block/set, and tag? Replacement policies for set and fully associative: LRU (Pseudo LRU), Random What does mean when cache line is valid? Dirty? What the difference between write-through and write-back write policies? What does it mean to have cache/miss or hit?

Virtual Memory(VM) What is the motivation for VM Difference between Virtual Address (VA) and Physical Address (PA)? Benefits: Multiprogramming, Isolation and Protection

Paging Technique: ยƒ What is page? What is a page frame? Page offset? ยƒ What is a page table? Where is the table store? ยƒ Address Translation from VA to PA ยƒ What is a page fault? ยƒ Valid, Dirty, Page Replacement and Write policies (similar to cache) ยƒ Replacement policies: LRU, FIFO ยƒ Problem with paging scheme: Which fragmentation problem?

TLB: ยƒ Why use it? ยƒ What does it store? ยƒ How does TLB, Cache and Main Memory and Disk Interact in general?

Effective Access Time calculation

Process/ Threads/Deadlock

What is a process? Different process states What details are stored in process Control Block (PCB)? Preemption vs. Non-preemption Scheduling Schemes: FCFS, SJF, Round Robin, Priority, and Multi-level feedback queue What is context switch? What is difference between processes and threads? Why is process creation more expensive? Synchronization primitives: ยƒ locks (mutex), semaphore (P and V operations) ยƒ Conceptual questions (exact syntax of pthread and semaphore is not required)

What are Deadlocks? ยƒ What conditions cause Deadlocks ยƒ Deadlock Prevention ยƒ Deadlock Detection using Resource Allocation Graph for one instance of resource class ยƒ Deadlock Avoidance using Bankers Algorithm for single resource class