Server program act as a memory manager

Assignment Help Operating System
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.

Reference no: EM13538286

Questions Cloud

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..

Reviews

Write a Review

Operating System Questions & Answers

  Computing effective memory access time

Assume that 80 percent of the accesses are in the associative memory and that, of the remaining, 10 percent (or 2 percent of the total) cause page faults.What is the effective memory access time?

  Compare between segmentation and virtual memory organization

In a table forma, compare between segmentation and virtual memory organizations in terms of the memory structure, advantages, and disadvantages.

  Analyze video game-type interfaces and discuss three 3

describe the three 3 principles of direct manipulation and give examples as to how they are used in video game

  Create an array that stores in integers from the keyboard

create an array that stores in integers from the keyboard and then I can scan that array to check numbers in order, if the number I check is greater than the previous then I will set the next number in the array to the higher value.

  Consider a cpu that implements four parallel

Consider a CPU that implements four parallel fetch-execute pipelines for superscalar processing. Show the performance improvement over scalar pipeline processing and no-pipeline processing, assuming an instruction cycle similar to figure 4.1 in th..

  1 given the following code and the assembler equivalent to

1. given the following code and the assembler equivalent to the rightfor i999 igt0 i-- xixiyiloopnbspnbsp

  Ext4 file systems on linux vs. ntfs file systems

List what characters are absolutely not allowed for ext4 file systems on Linux vs. NTFS file systems on Windows in a plain text document.

  Clock drift results in error

Think about a frame being sent using synchronous transmission. Suppose that samples are taken at the middle of the bit period and that the clocks are synchronized at the starting of each frame.

  Assume that the passwords were eight characters

Assume that the passwords were eight characters long but that the salt length was increased to 24 bits. Again, the salts (and the corresponding algorithms) are known to all users. What would be the expected time to find all users' passwords using ..

  Determine major computer components

Suppose you have decided to buy a personal computer system for personal use and wish to be able to do the following tasks on the computer,

  Question about network security

Suppose that you are the network security officer of one corporation, what will be your plan to enhance your network security firewall? VPN, Content level protection or combination of them?

  Crescent manufacturing inc cmi is a luxury leader in

crescent manufacturing inc. cmi is a luxury leader in crafted and customized home furnishings. the corporate

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd