Chapter 1 Exercieses
Chapter 1 Exercieses
Chapter 1 Exercieses
by Umair kt ..
Q24 Discuss, with examples, how the problem of maintaining coherence of cached data
manifests itself in the following processing environments:
a. Single-processor systems
b. Multiprocessor systems
c. Distributed systems
Answer:
In single-processor systems, the memory needs to be updated when a processor issues updates
to cached values. These updates can be performed immediately or in a lazy manner. In a
multiprocessor system, different processors might be caching the same memory location in its
local caches. When updates are made,
the other cached locations need to be invalidated or updated. In distributed systems, consistency
of cached memory values is not an issue. However, consistency problems might arise when a
client caches file data.
Q25 Describe a mechanism for enforcing memory protection in order to prevent a program from
modifying the memory associated with other programs.
Answer:
The processor could keep track of what locations are associated with each process and limit
access to locations that are outside of a programs extent. Information regarding the extent of a
programs memory could be maintained by using base and limits registers and by performing a
check for every memory access.
Q26 Which network configurationLAN or WANwould best suit the following environments?
a. A campus student union
b. Several campus locations across a statewide university system
c. A neighborhood
Answer:
a. LAN
b. WAN
c. LAN or WAN
Q27 Describe some of the challenges of designing operating systems for mobile devices
compared with designing operating systems for traditional PCs.
Answer:
The greatest challenges in designing mobile operating systems include:
Less storage capacity means the operating system must manage memory carefully.
The operating system must also manage power consumption carefully.
Less processing power plus fewer processors mean the operating system must carefully
apportion processors to applications.
Q28 What are some advantages of peer-to-peer systems over client-server systems?
Answer:
Peer-to-peer is useful because services are distributed across a collection of peers, rather than
having a single, centralized server. Peer-to-peer provides fault tolerance and redundancy. Also,
because peers constantly migrate, they can provide a level of security over a server that always
exists at a known location on the Internet. Peer-to-peer systems can also potentially provide
higher network bandwidth because you can collectively use all the bandwidth of peers, rather
than the single bandwidth that is available to a single server.
Q29 Describe some distributed applications that would be appropriate for a peer-to-peer system.
Answer:
Essentially anything that provides content, in addition to existing services such as file services,
distributed directory services such as domain name services, and distributed e-mail services.
Q30 Identify several advantages and several disadvantages of open-source operating systems.
Include the types of people who would find each aspect to be an advantage or a disadvantage.
Answer:
Open source operating systems have the advantages of having many people working on them,
many people debugging them, ease of access and distribution, and rapid update cycles. Further,
for students and programmers, there is certainly an advantage to being able to view and modify
the source code. Typically open source operating systems are free for some forms of use, usually
just requiring payment for support services. Commercial operating system companies usually do
not like the competition that open source
operating systems bring because these features are difficult to compete against. Some open
source operating systems do not offer paid support programs. Some companies avoid open
source projects because they need paid support, so that they have some entity to hold
accountable if there is a problem or they need help fixing an issue. Finally, some complain that a
lack of discipline in the coding of open source operating systems means that backward
compatibility is lacking making upgrades difficult, and that the frequent release cycle exacerbates
these issues by forcing users to upgrade frequently.