ass1

advertisement
College of Information Technology / Operation Systems Essentials
Deadline 7-3-2010
120050334 / Reem haroun
Assignment #1
From our main Text Book Solve the following Questions:
a) Review Questions
1.1 List and briefly define the four main elements of a computer.
1. Processor: Controls the operation of the computer and performs its data
processing functions. When there is only one processor, it is often referred to as
the central processing unit (CPU).
2. Main memory: Stores data and programs. This memory is typically volatile;
that is, when the computer is shut down, the contents of the memory are lost. In
contrast, the contents of disk memory are retained even when the computer
system is shut down. Main memory is also referred to as real memory or
primary memory.
3. I/O modules: Move data between the computer and its external environment.
The external environment consists of a variety of devices, including secondary
memory devices (e. g., disks), communications equipment, and terminals.
4. System bus: Provides for communication among processors, main memory, and
I/O modules.
1.2 Define the two main categories of processor registers.
 User-visible registers: Enable the machine or assembly language programmer
to minimize main memory references by optimizing register use
 Control and status registers: Used by the processor to control the operation of
the processor and by privileged OS routines to control the execution of
programs.
1.4 What is an interrupt?
Interrupt the normal sequencing of the processor .Most I/O devices are slower
than the processor .Processor must pause to wait for device
1.6 What characteristics distinguish the various elements of a memory
hierarchy?
there is a tradeoff among the three key characteristics of memory: namely, capacity,
access time, and cost. A variety of technologies are used to implement memory
systems, and across this spectrum of technologies, the following relationships hold:
• Faster access time, greater cost per bit
• Greater capacity, smaller cost per bit
• Greater capacity, slower access speed
1.7 What is cache memory?
The cache contains a copy of a portion of main memory. When the processor attempts
to read a byte or word of memory, a check is made to determine if the byte or word is
in the cache. If so, the byte or word is delivered to the processor. Increase the speed of
memory . Processor speed is faster than memory speed
b) Problems
1.1 Suppose the hypothetical processor of Figure 1.3 also has two I/O
instructions:
0011 _ Load AC from I/O
0111 _ Store AC to I/O
In these cases, the 12-bit address identifies a particular external device. Show the
program
execution (using format of Figure 1.4) for the following program:
1. Load AC from device 5.
2. Add contents of memory location 940.
3. Store AC to device 6.
Assume that
Download