Documente Academic
Documente Profesional
Documente Cultură
University of Hail
Department of computer Science and Software Engineering
Course:ICS-431
Ibtesam Salah saleh
Caching copying information into faster storage system; main memory can be viewed as a last cache
for secondary storage.
5- What are the main differences between OS for mainframe computers and personal computers ?
+Mainframe :
maximize Hard Ware utilization/efficiency .
+Personal Computers : maximum support to user applications.
+File-system management:
1-Files usually organized into directories.
2- Access control on most systems to determine who can access what.
+ OS activities include:
Creating and deleting files and directories.
Primitives to manipulate files and directories.
Mapping files onto secondary storage.
Backup files onto stable (non-volatile) storage media.
10- What are the main differences between main memory and cache memory ?
ENG.DEE
P a g e |2
>Used for high-speed I/O devices able to transmit information at close to memory speeds,
Good example: tape, disk,
Bad example: keyboard.
>Device controller transfers blocks of data from buffer storage directly to main memory without CPU
intervention.
>Only one interrupt is generated per block, rather than the one interrupt per byte
>Multitasking environments must be careful to use most recent value, no matter where it is stored in
the storage hierarchy.
>Multiprocessor environment must provide cache coherency in hardware such that all CPUs have the
most recent value in their cache
>Distributed environment situation even more complex(Several copies of a datum can exist).
+ Clustered system :
> Multiple systems working together.
> Sharing storage via a storage-area network (SAN).
>Provides a high-availability service which survives failures.
> Some clusters are for high-performance computing (HPC).
+Types of clustered systems:
Asymmetric clustering .
Symmetric clustering .
18- What is the I/O structure difference between synchronous and asynchronous ?
+synchronous : (After I/O starts, control returns to user program only upon I/O completion)
Wait instruction idles the CPU until the next interrupt.
Wait loop (contention for memory access).
At most one I/O request is outstanding at a time, no simultaneous I/O processing.
+asynchronous : (After I/O starts, control returns to user program without waiting for I/O completion)
System call request to the operating system to allow user to wait for I/O completion.
Device-status table contains entry for each I/O device indicating its type, address, and
state.
Operating system indexes into I/O device table to determine device status and to modify
table entry to include interrupt.
19- What is parallel system, and what are its advantages? List parallel system two types ?
ENG.DEE
P a g e |3
20- What is the cause of interrupt ? what can the system do to eliminate this problem (interrupt handling)?
+Device controller informs CPU that it has finished its operation by causing an interrupt
+interrupt handling :
1- The operating system preserves the state of the CPU by storing registers and the program counter.
2- Determines which type of interrupt has occurred:
Polling
vectored interrupt system
3- Separate segments of code determine what action should be taken for each type of interrupt.
A network computer relies on a centralized computer for most of its services. It 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 of the required functionality in a standalone 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 those settings where network computers
are preferred.
1.2 What network configuration would best suit the following environments ?
a. A dormitory floor
== A LAN
b. A university campus
== A LAN, possible a WAN for very large campuses.
c. A state
== AWAN
d. A nation
== AWAN
1.2 Give two reasons why caches are useful . What problems do they solve ?What problem do they cause ?If a
cache can be made as large as the device for which it is caching (for instance , a cache as large as a disk ), why
not make it that large and eliminate the device ?
Caches are useful when two or more components need to exchange data, and the components
perform transfers at differing speeds. Caches solve the transfer problem by providing a buffer of
intermediate speed between the components. If the fast device finds the data it needs in the cache,
it need not wait for the slower device. The data in the cache must be kept consistent with the data
in the components. If a component has a data value change, and the datum is also in the cache,
the cache must also be updated. This is especially a problem on multiprocessor systems where
more than one process may be accessing a datum. Component may be eliminated by an equal-sized
cache, but only if: (a) the cache and the component have equivalent state-saving capacity (that is, if
the component retains its data when electricity is removed, the cache must retain data as well), and
(b) the cache is affordable, because faster storage tends to be more expensive.
1.8 Describe a mechanism for enforcing memory protection in order to prevent a program from modifying the
memory associated with other programs .
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.
ENG.DEE