Docsity

Chapter 1 Exercises In a multi-programming a, Exams of Health sciences

Toggle sidebar
bg1
Chapter 1 Exercises
In a multi-programming and time-sharing environment, several users share the system
simultaneously. What are two security problems with this? Can we ensure the same
degree of security in a time shared machine as in a dedicated machine? - ANSWER...-A
user can read the private data of another user, and a user could corrupt the private data
of another user. No. We can never be sure that there are no bugs, so we can't be sure
that we have prevented all sharing of data and fair allocation of computer resources.
The issue of resource utilization shows up in different forms in different types of
operating systems. List what resources must be managed carefully in the following
settings
a. Mainframe or minicomputer systems
b. Workstations connected to servers
c. Mobile computers - ANSWER...-a. Memory and CPU resources, storage, network
bandwidth
b. Memory and CPU resources
c. Power consumption, memory resources
Under what circumstances would a user be better off using a time-sharing systems than
a PC or single-user workstation? - ANSWER...-If the user is paying for management
costs, then the cost is cheaper for a timesharing system than for a single use computer.
Describe differences between symmetric and asymmetric multiprocessing. What are 3
advantages and 1 disadvantage of multiprocessor systems? - ANSWER...-Symmetric
processing treats all processors as equals; I/O can be processed on any of them.
Asymmetric processing designates one CPU as the master, which is only capable of
performing I/O; the master distributes computational work among the other CPUs.
Adv: Multiprocessor systems can save money by sharing power supplies, housings, and
peripherals. It can execute programs more quickly and has increased reliability.
How do clustered systems differ from multiprocessor systems? What is required for two
machines belonging to a cluster to cooperate to provide a highly available service? -
ANSWER...-Clustered systems are typically constructed by combining multiple
computers into a single system to perform a computational task distributed across the
cluster. Multiprocessor systems on the other hand could be a single physical entity
consisting of multiple CPUs. A clustered system is less tightly couple than a
multiprocessor system. Clustered systems use messages to communicate, while
processors in a multiprocessor system could communicate using shared memory. In
order for two machines to provide a highly available service, the state on the two
machines should be replicated and consistently updated. When one of the machines
fails, the other could then takeover functionality.
pf3
pf4

Partial preview of the text

Download Chapter 1 Exercises In a multi-programming a and more Exams Health sciences in PDF only on Docsity!

Chapter 1 Exercises

In a multi-programming and time-sharing environment, several users share the system simultaneously. What are two security problems with this? Can we ensure the same degree of security in a time shared machine as in a dedicated machine? - ANSWER...-A user can read the private data of another user, and a user could corrupt the private data of another user. No. We can never be sure that there are no bugs, so we can't be sure that we have prevented all sharing of data and fair allocation of computer resources. The issue of resource utilization shows up in different forms in different types of operating systems. List what resources must be managed carefully in the following settings a. Mainframe or minicomputer systems b. Workstations connected to servers c. Mobile computers - ANSWER...-a. Memory and CPU resources, storage, network bandwidth b. Memory and CPU resources c. Power consumption, memory resources Under what circumstances would a user be better off using a time-sharing systems than a PC or single-user workstation? - ANSWER...-If the user is paying for management costs, then the cost is cheaper for a timesharing system than for a single use computer. Describe differences between symmetric and asymmetric multiprocessing. What are 3 advantages and 1 disadvantage of multiprocessor systems? - ANSWER...-Symmetric processing treats all processors as equals; I/O can be processed on any of them. Asymmetric processing designates one CPU as the master, which is only capable of performing I/O; the master distributes computational work among the other CPUs. Adv: Multiprocessor systems can save money by sharing power supplies, housings, and peripherals. It can execute programs more quickly and has increased reliability. How do clustered systems differ from multiprocessor systems? What is required for two machines belonging to a cluster to cooperate to provide a highly available service? - ANSWER...-Clustered systems are typically constructed by combining multiple computers into a single system to perform a computational task distributed across the cluster. Multiprocessor systems on the other hand could be a single physical entity consisting of multiple CPUs. A clustered system is less tightly couple than a multiprocessor system. Clustered systems use messages to communicate, while processors in a multiprocessor system could communicate using shared memory. In order for two machines to provide a highly available service, the state on the two machines should be replicated and consistently updated. When one of the machines fails, the other could then takeover functionality.

Consider a computing cluster consisting of two nodes running a database. Describe two ways in which the cluster software can manage access to the data on the disk. Discuss the benefits and disadvantages of each. - ANSWER...-Consider the following two alternatives: asymmetric clustering and parallel clustering. With asymmetric clustering, one host runs the database application with the other host simply monitoring it. If the server fails, the monitoring host becomes the active server. This is appropriate for providing redundancy. However, it does not utilize the potential processing power of both hosts.With parallel clustering, the database application can run in parallel on both hosts. The difficulty implementing parallel clusters is providing some form of distributed locking mechanism for files on the shared disk. How are network computers different from traditional personal computers? Describe some usage scenarios in which it is advantageous to use network computers. - ANSWER...-A network computer relies heavily on a centralized computer for most of its processes. I can therefore have a minimal operating system to manage its resources. A personal computer on the other hand has to be capable of providing all the required functionality in a stand alone manner without relying on a centralized manner. Scenarios where administrative costs are high and where sharing leads to more efficient use of resources are precisely the setting where network computers are preferred What is the purpose of interrupts? How does an interrupt differ from a trap? Can traps be generated intentionally by a user program? If so, for what purpose? - ANSWER...-An interrupt is a hardware generated change of flow within the system. An interrupt handler is summoned to deal with the cause of the interrupt; control is then returned to the interrupted context and instruction. A trap is a software generated interrupt. An interrupt can be used to signal the completion of I/O to obviate the need for device polling. A trap can be used to call operating system routines or to catch arithmetic errors 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? - ANSWER...-The CPU can initiate a DMA operation by writing values into special registers that can be independently accessed by the device. The device initiates the corresponding operation one it receives a command from the CPU Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU's execution load. b. How does the CPU know when memory operations are complete? - ANSWER...- When the device is finished with its operation, it interrupts the CPU to indicate completion. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU's execution load.

extent of a programs memory could be maintained by using base and limits registers and by performing a check for every memory access Which network configuration- LAN or WAN- would 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 What are some advantages of peer-to-peer systems over client server systems? - ANSWER...-Services are distributed across a collection of peers, rather than a single centralized server. P2P provides fault tolerance and redundancy. Peers constantly migrate, so they provide a level of security over a server that always exists at a known location on the internet. P2P systems can potentially provide higher bandwidth because you can collectively use the bandwidth of all the peers rather than the bandwidth of a single server