Reference no: EM13889273
Programming Assignment
Create a server process that acts as a Memory Manager that allocates valid memory requests (your server double checks that they are valid, meaning that a process cannot ask for more memory than is available, either to the entire system, or for the current run of this set of jobs) to frames for multiple clients as in Program #2. Every time a valid memory request is made, a PCB for that client is created and enqueued to the Ready Queue. When a memory request is made that is too large for the system memory, an error message is sent back to that client, and another client will be allowed to make a request.
When the Memory Manager declines a client request for memory because there are not enough remaining frames available, the server begins to act as CPU short-term scheduler for all of the processes that are now in Ready. The server manipulates the Ready Queue using a FCFS or a round-robin scheduling algorithm, depending on the choice of the server. The degree of multiprogramming will depend on the number of clients in the Ready Queue.
Each client sends the name of its private FIFO (or just the PID, depending on who creates the private FIFO), a memory request in terms of number of bytes, and a CPU burst to the server through the common FIFO. As before, the common FIFO is created and opened once, and receives one struct input per client, and will use the private FIFO to respond to the client. The server begins at time zero. A clock (simple counter) is incremented for the current client's entire CPU burst (FCFS) or for the system time quantum (round-robin). Each client will receive its assigned frames and its completion time through its private FIFO.
When all clients are finished, the server will calculate and report throughput, average turnaround time, and average wait time (time in Ready). You may calculate turnaround times and wait times as you wish as long as it is accurate...
Prepare your own test data. On paper, work through your data showing Gantt charts, turnaround times, and wait times. Use these same values for testing your program.
• Save your C program using Notepad, and name it with the .c extension.
• Input values and Output values with the screenshots of execution.
• Gantt charts which show results of a test run of your data. These may be hand-drawn, or computer-generated.
Attachment:- Program assignment.rar
Optimality condition for maximization of utility function
: What is the optimality condition for the maximization of the utility function U (x,y) = xy^3 and the prices (Px,Py) = (2,.0.5)? Using the utility function and optimality condition from the previous question, If M = 40 what are the utility-maximizing..
|
Discuss understanding of contract law
: Discuss, incorporating your understanding of contract law, the following:- Whether a contract was formed. If so, when was it formed and who are the contracting parties. Bernard's legal position
|
Comparative advantage in manufacturing
: Suppose that Home in a two-sector (i.e., agriculture and manufacturing) specific-factors model has a comparative advantage in manufacturing. If Home were to open up to trade, will Home’s workers be better off, worse off, or are we unable to say the i..
|
State the two ways that variable costs may be defined
: Scott Winter asks your help in understanding the term "activity index." Explain the meaning and importance of this term for Scott. State the two ways that variable costs may be defined.
|
Create a server process that acts as a memory manager
: Create a server process that acts as a Memory Manager that allocates valid memory requests to frames for multiple clients as in Program
|
Do you agree with the court of appeals ruling
: In a narrative format, brief the U.S v. Leon case: detail the facts, issues and court holdings. Do you agree with the Court of Appeals ruling or the Supreme Court decision? Give a basis for your stance
|
Label the substitution effect and the income effect
: A consumer consumes 2 goods (X and Y) and has convex indifference curves for the two goods. In period 1 the price of each good is 2 and the consumer’s income is 8. In period 2 income and the price of Y are constant, but the price of X declines to 1. ..
|
Evaluate how you believe company operates in relation to crm
: Evaluate how you believe the company operates in relation to CRM, both operational and analytical. (For example: What are the customer touch points? How are customer enquiries over the web managed
|
The natural rate of unemployment never changes
: Which type of unemployment is most likely to fall as a result of government policies that stimulate aggregate demand? The natural rate of unemployment never changes. Changing the discount rate is a tool of fiscal policy. Government demand-management ..
|