Allocate new memory and release unneeded old memory

Assignment Help Basic Computer Science
Reference no: EM13308206

During an exec call in Minix, it tests for an adequate hole before releasing the current process memory. Reprogram this algorithm to do better.

Steps in Minix now:
1)Check permissions-is the file executable?
2)Read the header to get the segment and total sizes.
3)Fetch the arguments and environment from the caller.
4)Allocate new memory and release unneeded old memory.
5)Copy stack to new memory image.
6)Copy data(and possibly text) segment to new memory image
7)Check for and handle setuid, setgid bits.
8)Fix up process table entry.
9)Tell kernel that process is now runnable.

 

Reference no: EM13308206

Questions Cloud

Compare and contrast how useful each engine : Compare and contrast how useful each engine was in terms of providing reliable information, not just manufacturer's ads. Ask and AoL.
Find vertical reactions and construct complete shear moment : A 16-ft [4.88 m] span beam is fixed at one end and simply supported at the other end. A single concentrated load of 9600 lb [42.7 kN] is placed at the center of the span.
What is the value of using new and delete in c++ : Show the output from the following program. If an unknown value gets printed, write U.
Calculate the density of a mixture of air and so2 at a temp : calculate the density of a mixture of 90% air and 10% SO2 at a temperature of 150 degrees C and pressure of 1.10 atm.
Allocate new memory and release unneeded old memory : During an exec call in Minix, it tests for an adequate hole before releasing the current process memory. Reprogram this algorithm to do better.
Determine the weight of the satellite in pounds : A satellite would have a mass of 200 kg on the surface of the moon. Determine the weight of the satellite in pounds when it is in orbit 10,000 mi. above the surface of the earth.
Draw the pipeline execution diagrams : In snippet A, the branch is taken twice and then not taken. In snipped B, first branch is taken once and second branch is also taken once.
What is the pm concentration in micrometers per dcsm : The total gas volume that flowed through the dry gas meter was 2.785 cubic meters (at T = 60 deg F and P = 800 mm Hg). The mass of PM (particulate matter) was 1.50 g. Also, 72.0 g of H20 was collected in impingers.
Find how long does the satellite take to complete one orbit : A satellite of mass 190 kg is placed into Earth orbit at a height of 400 km above the surface. how long does the satellite take to complete one orbit

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Which layers in the tcp/ip protocol suite need to be changed

In an internet, we change the LAN (Local Area Network) technology to a new one? Which layers in the TCP/IP protocol suite need to be changed?

  Continue to keep a journal

Continue to keep a journal of your activities and experience of using SAP. Include a copy of your full journal as an appendix to the reflective essay.

  Write maximum and minimum rotational latency of disk

Write down the maximum and minimum rotational latency of this disk? Determine the average rotational latency of this disk?

  Performing swot analysis on viability of upgrading server

Carry out a SWOT analysis on the viability of upgrading to Server 2008.

  Is it possible free internet content might one day replace

Is it possible that free Internet content might one day replace textbooks

  Multiplexing-modulation techniques-line of sight propagation

Write about Multiplexing and Modulation techniques in detail with respect to Line of Sight Propagation. What is meant by Geo stationary orbit? Write down the advantages of Geo synchronous satellites?

  In which case there are no pricing changes

Finally, your management-side software should write to a file the status of the reservations; that is, which house is rented to whom, when, and for what price.

  Why the sdlc is adequate to develop any system

Why the SDLC is adequate to develop any system. Explain by giving at least two examples of systems, such as client-management systems and decision-support systems.

  Define multitasking and real-time terms of embedded system

Define, in your own words, "multitasking" and "real-time" in terms of embedded system

  Explain what is done in each of the risc states

Explain what is done in each of the RISC states for the 5 types of MIPS instructions represented with R, I, and J instruction formats.

  Write a program that accepts a temperature

Write a program that accepts a temperature in Fahrenheit from a user and converts it to Celsius by subtracting 32 from the Fahrenheit value and multiplying the result by 5/9. Display both values. Save the class as FahrenheitToCelsius.java.

  Scope and lifetime are distinct

Scope and lifetime are distinct yet related issues in programming languages. Languages can sometimes make design decisions that cause a conflict between the scope and the lifetime of variables. Java's decision to allow classes to be defined inside..

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