CS 2301 - Study Guide with Complete Solutions.
Linux reuses the written pages and synchronizes the file contents on the device with the latest
data when they are marked correct answers a.dirty
NUMA stands for correct answers b.Non-Uniform Memory Access
Memory compaction addresses memory fragmentation issues. correct answers a.True
The two types of swap memory include: correct answers c.Swap partitions and swap files
The OOM killer selects a processor to sacrifice for the sake of the overall system's health. correct
answers b.False
Cache Affinity means run process on correct answers a. Same CPU
True or False: There are usually two types of locality, temporal and spatial correct answers True
The term random-access memory or RAM means that: correct answers b. Memory is randomly
accessed
True or False: Address space can be shared or dedicated to users. correct answers True
True or False: Implementing paging support without care will lead to a faster machine. correct
answers False
True or False: calloc() allocates memory and also zeroes it before returning. correct answers
True
The address can be used by all of the following except: correct answers c. Registers
The data structure free list is used to track? correct answers c. Ranges of the physical memory
which is not currently in use
The fundamental difference between single-CPU hardware and multi-CPU hardware? correct
answers c. Caches
Consult the following figure; which page frame will be used first? correct answers c. Page frame
3
__________ is when each cache pays attention to memory updates by observing the bus that
connects
them to main memory. When a CPU then sees an update for a data item it holds in its cache, it
will notice
the change and either invalidate its copy or update it correct answers b. Bus Snooping
, True or False: Without a mechanism such as an address-space identifier, the TLB must be
flushed during a context switch correct answers False
Paging has advantages over segmentation to include which of the following: correct answers b.
Does not lead to external fragmentation
Which is not a common error? correct answers d. All are common errors
True or False: Cache coherency involves ensuring that multiple caches store the most updated
version of the stored data correct answers True
True or False: A translation-look aside buffer, or TLB is part of the chip's memory-management
unit (MMU). correct answers True
Assume the value of the base and limit registers are 1200 and 350 respectively. Which of the
following addresses is legal? correct answers b. 1200
True or False: A base register is used to transform physical addresses (generated by the program)
into virtual addresses. correct answers False
Internal fragmentation means: correct answers a. Space inside the allocated unit is not all used
but fragmented
Which of the following data structures is appropriate for placing into its own segment? correct
answers d. all of the above
True or False: Fragmentation does not occur in a paging system. correct answers False
True or False: A 32-bit logical address with 8 KB page size will have 1,000,000 entries in a
conventional page table? correct answers False
Which is not a goal of virtual memory (VM)? correct answers d. Isolation
At any given time, many pages of any process are in the main memory and therefore more
processes can be maintained in memory. correct answers False
In Java, garbage collection is the process of managing memory correct answers a.automatically
Placing free memory together into a large block is called correct answers c.Compaction
Virtual memory frees up ______ by swapping data that has not been used recently over to a
storage device, such as a hard drive or solid-state drive (SSD). correct answers d.RAM
A user can display the value of a variable using the 'printfileo' command. correct answers False
'cd' is a command in Linux/UNIX for correct answers c.Change of Directory
Linux reuses the written pages and synchronizes the file contents on the device with the latest
data when they are marked correct answers a.dirty
NUMA stands for correct answers b.Non-Uniform Memory Access
Memory compaction addresses memory fragmentation issues. correct answers a.True
The two types of swap memory include: correct answers c.Swap partitions and swap files
The OOM killer selects a processor to sacrifice for the sake of the overall system's health. correct
answers b.False
Cache Affinity means run process on correct answers a. Same CPU
True or False: There are usually two types of locality, temporal and spatial correct answers True
The term random-access memory or RAM means that: correct answers b. Memory is randomly
accessed
True or False: Address space can be shared or dedicated to users. correct answers True
True or False: Implementing paging support without care will lead to a faster machine. correct
answers False
True or False: calloc() allocates memory and also zeroes it before returning. correct answers
True
The address can be used by all of the following except: correct answers c. Registers
The data structure free list is used to track? correct answers c. Ranges of the physical memory
which is not currently in use
The fundamental difference between single-CPU hardware and multi-CPU hardware? correct
answers c. Caches
Consult the following figure; which page frame will be used first? correct answers c. Page frame
3
__________ is when each cache pays attention to memory updates by observing the bus that
connects
them to main memory. When a CPU then sees an update for a data item it holds in its cache, it
will notice
the change and either invalidate its copy or update it correct answers b. Bus Snooping
, True or False: Without a mechanism such as an address-space identifier, the TLB must be
flushed during a context switch correct answers False
Paging has advantages over segmentation to include which of the following: correct answers b.
Does not lead to external fragmentation
Which is not a common error? correct answers d. All are common errors
True or False: Cache coherency involves ensuring that multiple caches store the most updated
version of the stored data correct answers True
True or False: A translation-look aside buffer, or TLB is part of the chip's memory-management
unit (MMU). correct answers True
Assume the value of the base and limit registers are 1200 and 350 respectively. Which of the
following addresses is legal? correct answers b. 1200
True or False: A base register is used to transform physical addresses (generated by the program)
into virtual addresses. correct answers False
Internal fragmentation means: correct answers a. Space inside the allocated unit is not all used
but fragmented
Which of the following data structures is appropriate for placing into its own segment? correct
answers d. all of the above
True or False: Fragmentation does not occur in a paging system. correct answers False
True or False: A 32-bit logical address with 8 KB page size will have 1,000,000 entries in a
conventional page table? correct answers False
Which is not a goal of virtual memory (VM)? correct answers d. Isolation
At any given time, many pages of any process are in the main memory and therefore more
processes can be maintained in memory. correct answers False
In Java, garbage collection is the process of managing memory correct answers a.automatically
Placing free memory together into a large block is called correct answers c.Compaction
Virtual memory frees up ______ by swapping data that has not been used recently over to a
storage device, such as a hard drive or solid-state drive (SSD). correct answers d.RAM
A user can display the value of a variable using the 'printfileo' command. correct answers False
'cd' is a command in Linux/UNIX for correct answers c.Change of Directory