100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COP 4600 Test 2 Questions And 100% Correct Answers

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
18-11-2024
Written in
2024/2025

COP 4600 Test 2 Questions And 100% Correct Answers...

Institution
COP 4600
Course
COP 4600

Content preview

COP 4600 Test 2 Questions And 100% Correct Answers



Which is the only storage that the CPU can address directly? Example?- ANSWER Main
memory; Fetch and execute cycle.



What do we mean by when we say "addressed"?- ANSWER We mean byte of memory
has a location expressible with a number or set of numbers.



Registers - ANSWER They are single words of memory that the CPU can do arithmetic
and logic in - and more importantly for the moment, use to control memory.



Base register - ANSWER - Is used to hold the lowest memory address a process can
access.

- is added to each logical address to obtain the corresponding physical address.



Limit register - ANSWER Is used to hold the size of the range a process can access

***Note: The limit register is not the last physical or logical address that can be
accessed.



Accessing registers can be done in ______________. - ANSWER a cycle



Accessing main memory requires _______________. - ANSWER a stall



Cache - ANSWER is a smaller, faster space of memory used to hold memory "closer" to
the processor



The cache can be accessed only when _______________. - ANSWER No stall or a short
one

,Each _________ needs to be confined to its own _________. How do we? - ANSWER
process; memory; with the base and limit register



Setting the base and limit registers limit to the operating system-make them
_____________. - ANSWER privileged instructions



When does a process get killed? - ANSWER When a process accesses memory below
the base or beyond the limit, it gets killed.



Termination goes by many names, which are? - ANSWER - Segmentation Fault

- General Protection Fault

- Access Violation



A program when residing on a disk is usually __________________. - ANSWER a binary
executable



For a program to run and become a process it has to be? - ANSWER loaded into memory



If swapping is involved, the process? - ANSWER Can be moved between disk and
memory multiple times during execution.



Input queue - ANSWER Is the queue of processes on disk waiting to get into memory.



Process can usually run __________ in memory, but for that to work, its addresses need
to be __________. Eventually, those addresses need to become ____________ - the ones
used in actual memory unit (Even those that are not necessarily physical). - ANSWER
anywhere; bound; physical addresses



Address binding how does it work? The addresses used by un-compiled - or at least
un-assembled - programs are said to be symbolic addresses, and are such things as
variable names and the like. The compiler binds them into relocatable addresses, such

, as "n bytes from the beginning of this module", which the linker in turn binds into
absolute addresses. These "absolute" addresses then need to be bound again when the
operating system deals with the program and subsequently the process.



Binding Times - ANSWER - Compile Time

- Load Time

- Execution Time



Compile Time - ANSWER - Binds all addresses to physical addresses at link time.

- Only works if we know exactly where programs need to be loaded into memory.



Load Time - ANSWER - Leave addresses zero-relative at link time, generating
relocatable code that the OS binds when it loads the program.

- Only works if we know programs will never be moved in memory.



Execution Time - ANSWER - Bind addresses every time they're used.

- All modern general-purpose operating systems use this.

- Requires hardware support.



Execution time binding creates? - ANSWER A distinction between the addresses that the
CPU uses in normal operation ( logical/virtual addresses) and the addresses that are
actually accessed in memory (physical addresses).



Mapping is done by? And has be in? - ANSWER Memory management unit; hardware



Simple Mapping Example - ANSWER - Consider the base register as the relocation
register.

- On every memory access by a process, add the base register

- On every context switch, change the base and limit registers

Written for

Institution
COP 4600
Course
COP 4600

Document information

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

Subjects

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.
Easton West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
528
Member since
3 year
Number of followers
221
Documents
25555
Last sold
5 hours ago

3.9

113 reviews

5
53
4
21
3
22
2
7
1
10

Trending documents

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

Frequently asked questions