• 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
Start selling Create your account
Document preview thumbnail
Preview 1 out of 8 pages
Summary

Summary COS3721 ASSIGNMENT 1 SOLUTIONS 2023

Document preview thumbnail
Preview 1 out of 8 pages

ASSIGNMENT 1 ASWERS FOR COS

Content preview

Assignment 1 Total marks 100

Question-1 Coverage : Chapter 1 [10]
1) Direct memory access is used for high-speed I/O devices in order to avoid increasing the

CPU’s execution load.

a. How does the CPU interface with the device to coordinate the transfer? (2)

~ The CPU can initiate a direct memory Access (DMA) operation by writing values into special
registers that can be independently accessed by the device. The device initiates the corresponding
operation once it receives a command from the Central Processing Unit (CPU).



b. How does the CPU know when the memory operations are complete? (2)

~ It gets interrupted to indicate the completion of the operation. Both the device and the CPU can
be accessing memory simultaneously. The memory controller provides access to the memory bus in
a fair manner to these two entities



c. The CPU is allowed to execute other programs while the DMA controller is transferring

data. Does this process interfere with the execution of the user programs? If so, describe

what forms of interference are caused. (4)

~ The process does interfere with the program, The CPU might be unable to issue memory
operations at peak speeds since it has to compete with the device in order to obtain access to the
memory bus.

~ DMA can lead to memory fragmentation. This can cause performance issues when the CPU
attempts to allocate or access memory.



2) Describe two challenges of designing operating systems for mobile devices compare with

designing operating system for traditional PCs. (2)

~ Less processing power and fewer processors mean the operating system must carefully share
processors to applications.

~ Less storage capacity means the operating system must manage memory carefully.



Question 2: Operating-system structures [12]
1) Describe three general methods for passing parameters to the operating system. (6)
~ Pass parameters in registers

Connected book
 image
Abraham Silberschatz, Greg Gagne, Peter B. Galvin Operating System Concepts
Publisher: 2018 ISBN: 9781119439257 Edition: Unknown

Document information

Summarized whole book?
Yes
Uploaded on
April 14, 2023
Number of pages
8
Written in
2022/2023
Type
Summary
£4.70

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.
elenaprowriter
3.6
(14)
Sold
106
Followers
71
Items
22
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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