Professional Documents
Culture Documents
Tutorial 1 Ans 1
Tutorial 1 Ans 1
A Virtual machine is a software computer which runs the operating system and
application. It is an emulation of a computer system. Virtual machines are based
on computer architectures and provide functionality of a physical computer. Their
implementations may involve specialized hardware, software, or a combination.
Answer: It is possible, but there are problems. One difficulty is the large amount of code
produced. Since one ISA instruction does the work of many microinstructions, the
resulting program will be much bigger. Another problem is that the compiler will have to
deal with a more primitive output language, hence it, itself, will become more complex.
Also, on many machines, the microprogram is on ROM. Making it user-changeable
would require putting it in RAM, which is much slower than ROM. On the positive side,
the resulting program might well be much faster, since the overhead of one level of
interpretation would be eliminated.
5. Name three appliances that are candidates for being run by an embedded CPU?
Answer: The three appliances that are candidates for being run by an embedded CPU are:
Microwave oven
Washing machines
Cordless telephones
6. Suppose that each of the 300 million people in the United States fully consumes two
packages of goods a day bearing RFID tags. How many RFID tags have to be produced
annually to meet that demand? At a penny a tag, what is the total cost of the tags? Given
the size of GDP, is this amount of money going to be an obstacle to their use on every
package offered for sale?
Again,
Good consume by 300 million people is 300*730
= 219000 million packages
= 219 billion packages
7. Provide the building blocks of computer architectures and briefly describe them.
I/O device: The devices which are used to take input and give output the users are
known as I/O devices. Keyboard and monitor are example of I/O device.
Arithmetic and logical unit: ALU is combinational digital electronic circuit that
performs all the arithmetic and logical operation. ALU has direct input and output
access to the processor controller, main memory and input/output devices.
8. Two basic system designs are shown in Figure (a) and Figure (b). Describe how
input/output might occur in each system. Which one has the potential for better overall
system performance?
(a)
(b)
Answer: In figure a,
9. CPU is one of the most important components for computer system. Describe 3
functional sections of CPU.
Arithmetic and logical unit: ALU is combinational digital electronic circuit that
performs all the arithmetic and logical operation that includes addition subtraction,
multiplication and division. ALU has direct input and output access to the
processor controller, main memory and input/output devices.
Booting: Booting is a process of starting the computer operating system starts the
computer to work. It checks the computer and makes it ready to work.
Memory Management: It is also an important function of operating system. The
memory cannot be managed without operating system. Different programs and data
execute in memory at one time. if there is no operating system, the programs may
mix with each other. The system will not work properly.
Data Security: Data is an important part of computer system. The operating system
protects the data stored on the computer from illegal use, modification or deletion.
Disk Management: Operating system manages the disk space. It manages the stored
files and folders in a proper way.
11. Briefly explain how Operating System handle multiprogramming or multiprocessing.
Answer: Interrupts are important because they give the user better control over the
computer. Without interrupts, a user may have to wait for a given application to have a
higher priority over the CPU to be ran. This ensures that the CPU will deal with the
process immediately.