In a virtual memory system, the I/O operations executed by a user program can be of two different types. Name them and explain when each one of them occurs.
The two types of I/O operations in such a system are the following:
1. Memory Mapped:
In this type, only one group of instructions is used for I/O and memory. The address space is shared. This can slow down the memory addressing capability. It is not considered very efficient due to the same reason. However, it makes it less complex, and the logic of the system becomes very simple as well.
When: It is used when a large group of instructions is to be used. This is useful when performance is in demand. It supports special instructions for various operations.
2. Isolated:
In this type, the I/O uses separate control lines but shares the common bus for address and data with memory. Because both memory and I/O use separate address space, it is called isolated. I/O addresses are called ports. This is considered more efficient. Because of separate buses the size often increases. This also increases complexity.
When:
This is
used when there is a need for fewer I/O instructions. This is also
used when there are small memory requirements. It is also useful
for logical and arithmetic operations.
In a virtual memory system, the I/O operations executed by a user program can be of...
In a virtual memory system, the I/O operations executed by a user program can be of two different types. Name them and explain when each one of them occurs.
In most multiprogrammed systems, user programs access memory through virtual addresses, while the operating system uses raw physical addresses to access memory. What are the implications of this design on the initiation of I/O operations by the user program and their execution by the operating system?
Write a Java program that prompts the user for the page size used in a virtual memory system; this will be a power of two between 512 (29) and 16384 (214), inclusive. Your program should check the user input for page size to make sure it is one of the allowable inputs (must be a power of 2 and cannot be smaller than 512 or larger than 16384), and should then prompt the user for a virtual address (assume 32-bit...
Computer architecture rence1 (Choone) D Question 21 Regarding the virtual memory system, check all the statements that are true. Each program has its own page table, A program's memory space must be a contiguous physical addresses in the RAM, The user program is responsible for maintaining its own page table, If a computer has 1 GB RAM, the software can be written to use 2 GB of memory. It enables multiple programs to share the computer's memory, each program can...
11. In a paged virtual memory system, can the computer 's physical memory address space be larger than a process's virtual memory address space? Explain your answer. (Note: A computer 's "physical memory address space" is the number of bits for the frame number plus the number of bits foir the offset. A process's "virtual memory address space" is the number of bits for a page number plus the number of bits for the offset.)
Use MIPS memory-mapped I/O to interact with a user. Each time the user presses a button, a pattern of your choice displays on five light-emitting diodes (LEDs). Suppose the input button is mapped to address 0xFFFFFF10 and the LEDs are mapped to address 0xFFFFFF14. When the button is pushed, its output is 1; otherwise, it is 0. (a) Write MIPS code to implement this functionality. (b) Draw a schematic for this memory-mapped I/O system. (c) Write HDL code to implement...
9. Answer the following questions related to the size of a program and memory space. A) What is it that determines the total amount of virtual memory space a computer system can have? B) What is it that determines the size of the largest program that can be executed on a single machine that has only one core? C) What is it that ultimately limits the number of programs that a given machine can run?
18. You have a byte-addressable virtual memory system with a two-entry TLB, a 2-way set associative cache, and a page table for a process P. Assume cache blocks of 8 bytes and page size of 16 bytes. In the system below, main memory is divided into blocks, where each block is represented by a letter. Two blocks equal one frame. Given the system state as depicted above, answer the following questions: a) How many bits are in a virtual address...
Implement the frame replacement algorithm for virtual memory Assume a computer system have 10 memory frames available inside the physical memory and is required to execute a process containing 20 pages. Assume a process P has been executed in the system and produced a sequence of 40 page demands as follows: Page demands trace of process P Demand 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 cont. Page...