Q1. In a multiprogramming and time-sharing environment, several users share the system simultaneously. This situation can result in various security problems. a. What are two such problems? b. Can we ensure the same degree of security in a time-shared machine as in a dedicated machine? Explain your answer?
Ans1: (a) Stealing or copying a user 's files; writing over another program 's (belonging to another user or to the OS) area in memory; using system resources (CPU, disk space) without proper accounting; causing the printer to mix output by sending data while some other user 's file is printing.
(b)
Probably we cannot assure the same degree of security in a time shared machine as in a dedicated machine, since any protection scheme devised by a human can also be broken -- and the more complex the scheme is, the more difficult it is to be confident of its correct implementation.
Q2. Which of the functionalities listed below need to be supported by the operating system for the following two settings: (a) handheld devices and (b) real-time systems? a. Batch programming b. Virtual memory c. Time sharing
Ans2:
For hand held systems, the operating system needs to provide virtual memory, but does not need to provide time-sharing.
For real-time systems, the operating system needs to support virtual memory and time sharing in a fair manner.
Batch programming is not necessary in both settings.
Q3. Describe the differences between symmetric and asymmetric multiprocessing. What are three advantages and one disadvantage of multiprocessor systems?
Ans3:
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 the only one capable of performing I/O; the master distributes computational work among the other CPUs.
|Advantages