• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 12 pages
Exam (elaborations)

Operating Systems Ch 2-questions and correct answers

Document preview thumbnail
Preview 2 out of 12 pages

Operating Systems Ch 2-questions and correct answers

Content preview

Operating Systems
Ch 2-questions and
correct answers



Describe how you could obtain a statistical profile of the amount
of time spent by a program executing different sections of its
code. Discuss the importance of obtaining such a statistical
profile. - answer ✅✅One could issue periodic timer interrupts and
monitor what

instructions or what sections of code are currently executing when
the interrupts are delivered. A statistical profile of which pieces of
code were active should be consistent with the time spent by the
program in different sections of its code. Once such a statistical
profile has been obtained, the programmer could optimize those
sections of code that are consuming more of the CPU resources.

, Describe three general methods for passing parameters to the
operating system. - answer ✅✅a. Pass parameters in registers

b. Registers pass starting addresses of blocks of parameters

c. Parameters can be placed, or pushed, onto the stack by the
program, and popped off the stack by the operating system



How could a system be designed to allow a choice of operating
systems from which to boot? What would the bootstrap program
need to do? - answer ✅✅Consider a system that would like to
run both Windows

XP and three different distributions of Linux (e.g., RedHat,
Debian, and Mandrake). Each operating system will be stored on
disk. During system boot-up, a special program (which we will call
the boot manager) will determine which operating system to boot
into. This means that rather initially booting to an operating
system, the boot manager will first run during system start-up. It is
this boot manager that is responsible for

determining which system to boot into. Typically boot managers
must be stored at certain locations of the hard disk to be
recognized during system start-up. Boot managers often provide
the user with a selection of systems to boot into; boot managers
are also typically designed to boot into a default operating system
if no choice is selected by the user.



In what ways is the modular kernel approach similar to the
layered approach? In what ways does it differ from the layered
approach? - answer ✅✅The modular kernel approach requires
subsystems to interact

Document information

Uploaded on
September 9, 2024
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

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

Sold
9
Followers
1
Items
2231
Last sold
1 month ago



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