logo

Crowdly

Browser

Add to Chrome

2025W Operating Systems (CS-3520-01)

Looking for 2025W Operating Systems (CS-3520-01) test answers and solutions? Browse our comprehensive collection of verified answers for 2025W Operating Systems (CS-3520-01) at moodle31.upei.ca.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Consider a system that has a 16KB address space and 64 byte pages. How many page table entries (PTE) are there?
View this question
Consider a system that has a 16KB address space and 64 byte pages. How many pages are required to store the address space?
View this question

Consider a system that has a 16KB address space and 64 byte pages in a two-level page table. How many pages are required to store the page directory (assuming each page directory entry (PDE) is 4 bytes)?

0%
0%
0%
0%
View this question
The physical address corresponding to the virtual address 0x19e under base and bounds translation with base of 0x3082 and bounds of 0x1d8 is (recall 0x indicates the number is in hexadecimal format):
View this question

Suppose there are two processes P1 and P2 whose 1KB address spaces are allocated in physical memory with base relocation (only base, no bounds). Suppose P1 has a base equal to 1024 and P2 has base equal to 4096. Which of the following virtual memory addresses can P1 use that will give it access P2's memory?

0%
0%
0%
0%
View this question
What page is the virtual address 110110 (in binary) in if we assume the address space is divided into four 16 byte pages (page 0 to page 3)?
0%
0%
0%
0%
View this question
The physical address corresponding to the virtual address 0x1d9 under base and bounds translation with base of 0x3082 and bounds of 0x1d8 is (recall 0x indicates the number is in hexadecimal format):
0%
0%
0%
0%
View this question
Which of the following are advantages of segmentation? (choose the best answer)
View this question
Who or what handles page faults?
View this question

The following C code was our first attempt to make a lock using a flag to indicate if the lock was acquired.

typedef struct __lock_t { int flag; } lock_t;

void init(lock_t *mutex) {

mutex->flag = 0;

}

void lock(lock_t *mutex) {

while (mutex->flag == 1) // TEST the flag

; // spin-wait (do nothing)

mutex->flag = 1; // now SET it !

}

void unlock(lock_t *mutex) {

mutex->flag = 0;

}

How will this code perform in terms of correctness and efficiency?

View this question

Want instant access to all verified answers on moodle31.upei.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome