Reference no: EM13538286
Let your server program act as a memory manager. The memory manager uses a paging scheme in which pages and frames are of size 128 bytes. Clients request main memory space by sending to the server the total number of bytes in their logical process. Given a list of free frames, the server allocates frames for the clients. After clients' logical space has been mapped to physical space, the server will be prompted with a client number (must be verified) and a logical address. The server will respond by calculating the physical address. If given an invalid logical address, the server will print an appropriate message.
Example: Client requests memory for its program of size 300 bytes. If the free space list (the list of free frames) is 5, 3, 0, 1, 2, then Client1 will be allocated frame 5 (for its first 128 bytes), frame 3 (for its next 128 bytes) and frame 0 (for its final 44 bytes). When prompted for the physical address for logical address 200, the page table for Client1will be examined. We will know that the address in question is on page 1 at offset 72, which is loaded in frame 3. Frame 3 begins at location 384, which is (128 * 3). The server calculates the physical address to be 384 + 72.
The server:
The server program accepts memory requests for each of three clients. A page table is built for each client. The frames assigned to the client are sent back to the client. Pages are mapped to frames according to a free frame list. For the final check on your program, please use the following free frame list: 4, 6, 2, 7, 0, 5, 9, 11, 10, 1, 8, 3. The server will work on a static set of memory allocations as long as the operator wants to continue. The server will print out a representation of the allocated frames (where each frame indicates which client it belongs to, and which page is loaded into it). After the memory allocation has been set, the server will prompt for a client number and a logical address and will return the physical address.
The client:
Each client program sends a memory request to the server program. Each client will print its memory size and its assigned frames.
Memory Management:
You may use a physical memory of 12 frames.
To be displayed:
The server should print the client number, the logical address, the frame number, the physical address and a representation of the physical memory.
Calculate the friction force on the ladder at the floor
: A uniform 250 ladder rests against a perfectly smooth wall, making a 40.0 angle with the wall. What is the friction force on the ladder at the floor
|
Microcontrollers usually do not include converters
: Microcontrollers usually do not include D/A converters but you can easily create a crude version of one usually signle digital I/O pin. This can be done by outputting a variable-width pulse train to an RC circuit.
|
Compute what is the mass of the wheel
: A large grinding wheel in the shape of a solid cylinder of radius 0.330 m is free to rotate on a frictionless, vertical axle. What is the mass of the wheel
|
Design and draw a full-adder circuit
: Design and draw a full-adder circuit that has two sum bits Ai and Bi and a lower order carry bit Ci-1 as inputs. Include truth table and include sum of products Boolean expression for the output sum bit Si and carry bit Ci.
|
Server program act as a memory manager
: The server should print the client number, the logical address, the frame number, the physical address and a representation of the physical memory.
|
Compute the size of the electric current
: During 30 seconds of use, 250 C of charge flow s through a microwave oven. Compute the size of the electric current
|
Explain acidified by acid rain can be neutralized
: Lakes that have been acidified by acid rain can be neutralized by the addition of limestone (CaCO3). How much limestone in kilograms would be required to completely neutralize a 5.2 x 109 L lake containing 5.0 x 10-3 g of H2SO4 per liter
|
Calculate the distance traveled by the jet
: A jet is circling an airport control tower at a distance of 18 km. An observer in the tower watches the jet cross in front of the moon. Find the distance traveled (in meters) by the jet
|
Assume that energy lost to evaporation matches
: A cold beverage can be kept cold even on a warm day if it is slipped into a porous ceramic container that has been soaked in water. Assume that energy lost to evaporation matches the net energy gained via the radiation exchange through the top and..
|