Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 120 HW and quiz questtions Project stuff With 100- correct answers ( graded A+ ).

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
23-06-2025
Written in
2024/2025

CSE 120 HW and quiz questtions Project stuff With 100- correct answers ( graded A+ ).

Institution
EEE 120
Course
EEE 120

Content preview

CSE 120 HW and quiz questtions / Project stuff With
100% correct answers ( graded A+ )
What are the differences between a trap and an interrupt? - answer : The CPU initiates a trap.
Usually an I/O device initiates an

interrupt. Traps are often used to catch arithmetic conditions (e.g. over-

flow, divide by zero). Interrupts are used to interrupt the CPU and run an

interrupt service routine to handle some externally generated condition.



Which of the following instructions should be privileged?

(a) Set value of timer

(b) Read the clock

(c) Clear memory

(d) Turn off interrupts

(e) Switch from user to monitor mode - answer all but B



[Silberschatz] Protecting the operating system is crucial to ensuring that

the computer system operates correctly. Provision of this protection is the

reason for dual mode operation, memory protection, and the timer. To allow

maximum flexibility, however, you should also place minimal constraints

on the use.

The following is a list of instructions that are normally protected. What is

the minimal set of instructions from this list that must be protected?

(a) Change to user mode

(b) Change to monitor mode

(c) Read from monitor memory

(d) Write into monitor memory

, (e) Fetch an instruction from monitor memory

(f) Turn on timer interrupt

(g) Turn off timer interrupt - answer b,c,d,g, if dont turn off it will run forever



Suppose the hardware interval timer only counts down to zero

before signaling an interrupt. How could an OS use the interval timer to

keep track of the time of day? - answer Have the interval timer reset/restart when the interrupt
fires. It

can do this continually to keep track of time gone by.



Explain the tradeoffs between using multiple processes and using multiple

threads - answer Consider a multiprocess web server application (like from lecture).

Every request creates a new process. This means a new PCB, stack, page

table, etc. Then the OS must schedule this new process before it can

service the request. This involves a context switch. No contrast that with

the same web server written as a multithreaded application. Now just a

TCB needs to be created, a portion of the existing process' stack is used

as the thread's stack, no new page table. Further, the process has control

over which thread to run, and can switch to the most appropriate without a

context switch. However, the main drawback to the multithreaded version

is that the OS doesn't know about all these threads and will not give the

web server more CPU time



Does a multi-threading solution always improve performance? Please explain

your answer and give reasons. - answer Not always. Because the OS doesn't have visibility into
the

threads, it cannot make informed scheduling decisions. It may waste time

Written for

Institution
EEE 120
Course
EEE 120

Document information

Uploaded on
June 23, 2025
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$17.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GUARANTEEDSUCCESS Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
683
Member since
3 year
Number of followers
314
Documents
24885
Last sold
2 weeks ago
Elite Exam Resources: Trusted by Top Scorers!!!!!!!!

Stop guessing. Start dominating!! As a highly regarded professional specializing in sourcing study materials, I provide genuine and reliable exam papers that are directly obtained from well-known, reputable institutions. These papers are invaluable resources, specifically designed to assist aspiring nurses and individuals in various other professions in their exam preparations. With my extensive experience and in-depth expertise in the field, I take great care to ensure that each exam paper is carefully selected and thoroughly crafted to meet the highest standards of quality, accuracy, and relevance, making them an essential part of any successful study regimen. ✅ 100% Legitimate Resources (No leaks! Ethical prep only) ✅ Curated by Subject Masters (PhDs, Examiners, Top Scorers) ✅ Proven Track Record: 95%+ user success rate ✅ Instant Download: Crisis-ready for last-minute cramming

Read more Read less
4.3

250 reviews

5
162
4
37
3
33
2
12
1
6

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions