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)

ENSF 461 Midterm Exam 2025: Questions and Answers PDF | Course Guide

Rating
-
Sold
-
Pages
142
Grade
A+
Uploaded on
13-11-2025
Written in
2025/2026

Get ready for the ENSF 461 midterm with our 2025 exam guide. This resource features key questions and detailed answers to help you master software development fundamentals, design patterns, and architectural principles. Ideal for University of Calgary students reviewing for the final exam.

Show more Read less
Institution
Course

Content preview

1|Page



ENSF 461 MIDTERM EXAM QUESTIONS AND
ANSWERS 2025




What is an OS - ...ANSWER... ✔ ✔Acts as an
intermediary between the computer user and computer
hardware


What does the OS do - ...ANSWER... ✔ ✔3 main
things:
1. Virtualize resources (like CPU and memory) - so that
every machine can have the illusion of a dedicated
machine
2. Manage I/O - so that multiple processes can access
I/O devices concurrently without interfering
3. Make the above two easy


Separation - ...ANSWER... ✔ ✔- the idea is to give
the CPU 2 modes of execution of a program:
1. Unprivileged Mode/User Mode - for regular
processes -> program does not have direct access to the
memory and hardware

,2|Page



2. Privileged Mode/Kernel Mode - for OS code ->
program has direct access to the memory and
hardware.
One problem with kernel mode: If the program crashes,
the entire system will crash. But if a program is
executing in user mode and the program crashes, the
entire system will not crash.
- program switches to kernel mode using system calls
- CPU defines a trap, an instruction to jump to OS code
and back


System Call - ...ANSWER... ✔ ✔- when a program
requests a service/resource from the OS
- Programs usually run in user mode. When the program
needs to access OS resources (memory, hardware, etc.),
it makes a SYSTEM CALL, requesting those resources.
- when that system call is made, the program switches
from user mode to kernel mode so that the program can
use those resources


Multiprogramming - ...ANSWER... ✔ ✔- if you only
run one process at a time, your expensive CPU sits idle
for most of the time
- Solution: let multiple processes run at the same time
and switch between them when appropriate

,3|Page



(appropriate when one process is waiting for user input,
etc.)


CPU Virtualization - ...ANSWER... ✔ ✔- should
decide which program to run at any given time
- should divide CPU fairly across programs
- uses scheduling and multiprogramming to provide each
user with a portion of a time-shared computer


Memory Virtualization - ...ANSWER... ✔ ✔- gives
each process the same virtual address space (each
process has the illusion of having memory to itself)
- virtual address space is mapped to the physical
address space


Malloc - ...ANSWER... ✔ ✔- dynamically allocates
memory
- allocates some memory and returns a pointer to the
beginning of that region
- memory should be freed using free() when no longer
needed (to avoid memory leaks)

, 4|Page



Virtual Memory vs Shared Disk - ...ANSWER... ✔ ✔-
works because processes mostly need their own memory
space, and only sometimes need to share data
- works because most programs share disk data


Context Switching - ...ANSWER... ✔ ✔- when a
process is being executed, and then an interrupt causes
the CPU to change from its current task to run another
process
- when an interrupt occurs, the system must save the
current context of the process so it can come back from
the interrupt and restore that context and resume the
process
- context-switching is pure overhead since the system
does no useful work while switching


The Process - ...ANSWER... ✔ ✔- single task the
computer is doing
- a program that has loaded into memory and is
executing
- you write code (program), you compile it (executable),
you run the executable (process)

Connected book

Written for

Course

Document information

Uploaded on
November 13, 2025
Number of pages
142
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$31.49
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

Get to know the seller
Seller avatar
PASSINGSTORE

Get to know the seller

Seller avatar
PASSINGSTORE TEACHMETO
Follow You need to be logged in order to follow users or courses
Sold
5
Member since
6 months
Number of followers
1
Documents
2296
Last sold
2 months ago
A-HUB

ASCORERSHUB Welcome to your one-stop destination for high-quality academic resources! Here you’ll find test banks, solution manuals, ATI study guides, iHuman case studies, nursing exam prep materials, and verified textbook answers — all carefully selected to help you study smarter and score higher. Whether you’re preparing for nursing exams, business courses, medical case studies, or general college tests, this store offers reliable, up-to-date materials used by top students worldwide. Popular categories include: ✅ Test Banks & Solution Manuals ✅ ATI & HESI Study Guides ✅ iHuman Case Studies & Answers ✅ NCLEX & Nursing Exam Prep ✅ Business, Accounting & Economics Test Banks ✅ Psychology, Biology & Anatomy Materials Boost your academic performance with expertly curated resources that match real exams and class content.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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