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

  Write a program that asks the user to enter a string

Write a program that asks the user to enter a string. Create a pointer called strPtr and print the first character, third character and fifth character from your string using this pointer.

  Which of the following are advantages of the osi model

The OSI model was designed to provide a framework for networking and internetworking standards. Which of the following are advantages of the OSI model? There are 4 correct answers.

  Write a java statement to display the string

Write a Java statement to display the string "The value is 100" to a user in a plain dialog box.

  Make the circles have a thickness of 5 pixels,

Make the circles have a thickness of 5 pixels, except for the circle that didn't open at Sochi; make that one a solid disk.

  Write one java statement that creates an array of integers

Write one Java statement that creates an array of integers containing the multiples of 10 between 10 and 100, including 10 and 100.

  Write one function that reads the input using alias paramete

Write one function that reads the input using alias parameters (reference parameters).Write a second function that calculates the pay amount. If the salesperson owes money, thereturn amount from the function is a negative number.

  Need help with writing prototype functions

Need help with writing prototype functions: For this assignment, you must write pseudocode and C code for several sub-functions that use pointers and arrays, and a main() function that calls your sub-functions, printing the specified values

  Discuss the points and tabulate the strengths and weakness

Please discuss the points and tabulate the strengths and weaknesses

  Terracotta is bigmemory maximum using server arrayconfigur

how terracotta is BigMemory Maximum using Server array Configratio

  Write a program that asks the user for a year and computes

Write a program that asks the user for a year and computes whether that year is a leap year. I know how to build it, but I don't understand when it talks about the exceptions of 1582. Can someone explain this to me? Thanks.

  Illustrate how the asymptotic notation can be used to rank

To illustrate how the asymptotic notation can be used to rank the efficiency of algorithms, use the relations "C " and "=" to put the orders of the following functions into a sequence, where e is an arbitrary real constant, 0

  Identify the elements of the business model

Identify the elements of the Business Model that cloud computing as a new opportunity could transform and describe the Business Concept, that outlines the vision of this future business model,

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