Looking for CMPT 334 A - Principles of Operating Systems (FA 2025) test answers and solutions? Browse our comprehensive collection of verified answers for CMPT 334 A - Principles of Operating Systems (FA 2025) at learn.twu.ca.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Please write any resources you used during the exam (e.g., websites, generating all your answers in ChatGPT or another LLM). Note that you don't need to write out "lecture notes, textbook, my own notes".
Match the example with the best matching system call category
Consider the following course scheduling problem:
Course Id | Arrival Time | Burst Time | Priority |
CMPT 334 | 0 | 2.75 hours | 3 |
CMPT 280 | 0 | 1.25 hours | 2 |
CMPT 439 | 1 hour | 1.25 hour | 1 |
Non-Stem Class that isn't cool like Operating Systems | 1 hour | 45 minutes | 4 |
A student suggests the following schedule: CMPT 439 first then the Non-Stem class then CMPT 334 then CMPT 280.
What is the biggest issue with this schedule?
Consider the following situation: Process 1 (P1): May request up to 2 s_1 resources and 2 s_2 resources.Process 2 (P2): May request up to 2 s_1 resources and 3 s_2 resources.s_1 is initialized to 4 s_1 resources and s_2 has 5 resources.Suppose the current situation is that P1 has 1 s_1 resources and 1 s_2 resources while P2 has 2 s_1 resources and 0 s_2 resources.Which of the following statements are true. Multiple answers are allowed but wrong results are penalized with negative marks (basically getting correct answer will get perfect but selecting all answers will get zero or negative marks). Assume the system uses deadlock avoidance policies.
Suppose I have the following bookshelf and I wanted to insert the new book into it.
The worst-fit algorithm would say that I would put a book in…
Suppose I have the following bookshelf and I wanted to insert the new book into it.
The best-fit algorithm would say that I would put a book in…
Suppose I have the following bookshelf and I wanted to insert the new book into it.
The worst-fit algorithm would say that I would put a book in…
Suppose I have the following bookshelf and I wanted to insert the new book into it.
The best-fit algorithm would say that I would put a book in…
Suppose a system can keep 3 pages in memory at a time but uses virtual memory with the LRU Policy. Assume no pages are initially loaded. The following sequence of requests is made: 1, 2, 3, 4, 1, 2, 5, 3 How many page faults are there in this system? Enter a number.
Suppose I have the following bookshelf and I wanted to insert the new book into it.
The worst-fit algorithm would say that I would put a book in…