ETS Practice Quiz #3 - Systems PDF
Document Details
Uploaded by AuthoritativeCopper2549
California State University, Monterey Bay
ETS
Anish Nipun Parulekar
Tags
Summary
This document is a practice quiz for systems, covering topics like virtual memory, scheduling algorithms, and cache behavior. The quiz consists of multiple-choice questions.
Full Transcript
12/3/24, 2:12 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems ETS Practice Quiz #3 - Systems Results for Anish Nipun Parulekar Score for this attempt: 6 out of 6 Submitted Nov 1 at 5:41pm This attempt took 30 minutes. Question 1 1...
12/3/24, 2:12 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems ETS Practice Quiz #3 - Systems Results for Anish Nipun Parulekar Score for this attempt: 6 out of 6 Submitted Nov 1 at 5:41pm This attempt took 30 minutes. Question 1 1 / 1 pts 2 3 Correct! 4 5 6 Question 2 1 / 1 pts 2 https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=2 1/3 12/3/24, 2:12 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems Correct! 3 4 5 6 Question 3 1 / 1 pts A processor with a word-addressable memory has a two-way set-associative cache. A cache line is one word, so a cache entry contains a set of two words. If there are M words of memory and C cache entries, how many words of memory map to the same cache entry? C/2 M/2C Correct! M/C 2M/C M/2 Question 4 1 / 1 pts 150 160 200 Correct! 240 320 Question 5 1 / 1 pts https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=2 2/3 12/3/24, 2:12 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems With swapping, memory can be viewed as a cache for pages stored on disk. If it takes 100 ns to access memory, 10 ms to access disk, and our cache hit rate is 0.95, then what is the average memory access time, in ms? (provide only two significant digits in your answer) Correct! 0.5 0.5 (with margin: 0.01) Question 6 1 / 1 pts In a multi-threaded OS environment, what happens if signal() is called on a condition variable that has no threads in its waiting list? Correct! signal() has no effect signal() waits until a thread joins the waiting list signal() returns right away, but then the next thread that calls wait() does not have to wait Quiz Score: 6 out of 6 https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=2 3/3 12/3/24, 2:09 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems ETS Practice Quiz #3 - Systems Results for Anish Nipun Parulekar Score for this attempt: 4 out of 6 Submitted Nov 1 at 5:11pm This attempt took 7 minutes. Question 1 1 / 1 pts 2 3 Correct! 4 5 6 Question 2 0 / 1 pts 2 https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=1 1/3 12/3/24, 2:09 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems Correct Answer 3 You Answered 4 5 6 Question 3 0 / 1 pts A processor with a word-addressable memory has a two-way set-associative cache. A cache line is one word, so a cache entry contains a set of two words. If there are M words of memory and C cache entries, how many words of memory map to the same cache entry? C/2 M/2C Correct Answer M/C You Answered 2M/C M/2 Question 4 1 / 1 pts 150 160 200 Correct! 240 320 https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=1 2/3 12/3/24, 2:09 PM Anish Nipun Parulekar's Quiz History: ETS Practice Quiz #3 - Systems Question 5 1 / 1 pts With swapping, memory can be viewed as a cache for pages stored on disk. If it takes 100 ns to access memory, 10 ms to access disk, and our cache hit rate is 0.95, then what is the average memory access time, in ms? (provide only two significant digits in your answer) Correct! 0.5 0.5 (with margin: 0.01) Question 6 1 / 1 pts In a multi-threaded OS environment, what happens if signal() is called on a condition variable that has no threads in its waiting list? Correct! signal() has no effect signal() waits until a thread joins the waiting list signal() returns right away, but then the next thread that calls wait() does not have to wait Quiz Score: 4 out of 6 https://csumb.instructure.com/courses/25690/quizzes/102356/history?version=1 3/3