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
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

COP4600 FINAL EXAM 2026.pdf

Document preview thumbnail
Preview 3 out of 25 pages

Exam of 25 pages for the course COP4600 at COP4600 (COP4600 FINAL EXAM)

Content preview

COP4600 FINAL EXAM 2026/2027 QUESTIONS AND
SOLUTIONS RATED A+
✔✔What info is available in an executable? - ✔✔Header, text, data, and symbols

✔✔Part of the executable which contains linkages (ex. library functions) - ✔✔Symbols

✔✔Part of the executable which contains basic info such as organization of the
executable itself - ✔✔Header

✔✔Which process segment contains pointers? - ✔✔Stack

✔✔What is stack/heap overflow? - ✔✔No space left between stack/heap

✔✔Why do context switches occur? - ✔✔Blocking operations, CPU yield operations,
CPU sharing, and asynchronous evemts

✔✔Examples of blocking operations which cause context switches - ✔✔IO and sleep

✔✔Examples of asynchronous events which cause context switches - ✔✔Hardware
interrupts, signals, and exceptions

✔✔What are signals? - ✔✔Software interrupts

✔✔What must the OS do during context switches - ✔✔Store register values, track
memory addresses, and update process state if necessary

✔✔When Device raises the signal line which is checked every instruction. The
hardware jumps to interrupt vector and a ______ has occured - ✔✔Hardware interrupt

✔✔T/F: Hardware interrupts can be ignored only in protected state - ✔✔True

✔✔What happens when a process receives a signal it is registered to catch - ✔✔1)
Kernel receives signal via system call
2) IF PCB has registered handler for the target, the signal is stored and the handler
queued
3) If there is no registered handler, the target is terminated
4) Normal function continues

✔✔What happens during a hardware interrupt? - ✔✔1) Device raise line
2) Controller sends interrupt
3) CPU asks interrupt
4) Controller sends IRQ#

,✔✔What hardware causes the trap to kernel mode? Responsible for the context switch,
looking up routine according to interrupt #, and changing the protection state -
✔✔Dispatcher (IRQ)

✔✔T/F: Signals are invoked by the kernel and process - ✔✔False

✔✔T/F: Signals involve a syscall - ✔✔True

✔✔T/F: On multicore systems, the interrupt controller can be programmed to send
different interrupts to different processor cores - ✔✔True

✔✔Why must hardware interrupts be super fast? - ✔✔They constantly happen and
prevent all processes from running

✔✔Location of the next instruction to execute after returning from a procedure call is
found in the _____ segment - ✔✔Stack

✔✔Constants are found in the what segment of a process? - ✔✔Data

✔✔Parameters passed to a procedure/method are located in the what segment of a
process? - ✔✔Stack

✔✔In what segment of a process can memory leaks occur? - ✔✔Heap

✔✔In what segment are global variables found? - ✔✔Data

✔✔Where are dynamically allocated variables located? - ✔✔Heap

✔✔Where are instructions to be executed located? - ✔✔Text

✔✔T/F: In batch systems, the user was the operator - ✔✔False

✔✔T/F: I/O-bound jobs underutilize the CPU in uniprogrammed systems - ✔✔True

✔✔T/F: A major motivation for multiprogramming batch systems was improving
resource utilization - ✔✔True

✔✔T/F: Memory protection was not needed in uniprogramming batch systems -
✔✔True

✔✔T/F: Batch systems had to implement multiprogramming - ✔✔False

, ✔✔T/F: Stack and heap allocation always happens when an OS handles an interrupt? -
✔✔False

✔✔What happens whenever an OS must handle an interrupt? - ✔✔PC is stored, CPU
registers are stored, and ISR is invoked

✔✔In a ______, hardware and system tasks are in kernel space - ✔✔Microkernel

✔✔In a ______, hardware, file system, and device drivers are in kernel space -
✔✔Monolithic kernel

✔✔Can an interrupt be interrupted? - ✔✔Yes

✔✔Hardware mechanism which prevents and sets the hierarchy of interrupts -
✔✔Interrupt mask

✔✔Interrupt with 4 specific qualities:
1) PC saved in a known state
2) All instructions PC were fully executed
3) No instructions after the PC have been executed
4) Execution state of PC instruction is known - ✔✔Precise interrupt

✔✔In a _________ interrupt, the instruction will finish execution before the interrupt is
serviced - ✔✔Precise

✔✔Interrupt when instructions are left incomplete/partially executed - ✔✔Imprecise
interrupts

✔✔T/F: We can always get a precise by rolling back incomplete instructions - ✔✔Not
always

✔✔Three types of schedulers - ✔✔Admission, memory, and CPU

✔✔Scheduler which decides which and when a job runs. Deals with queued data/tasks.
Long-term scheduler - ✔✔Admission

✔✔Scheduler which decides which jobs to swap in/out of main memory. Deals with user
interaction. Medium term scheduler - ✔✔Memory

✔✔Scheduler which decides which ready process runs next. Usually only pulls from
RAM. Short-term scheduler - ✔✔CPU

Document information

Uploaded on
July 21, 2026
Number of pages
25
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.49

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

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.
BOARDWALK
3.5
(41)
Sold
283
Followers
10
Items
32850
Last sold
1 week 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