Why the unix kernel does not shrink it

Assignment Help Basic Computer Science
Reference no: EM131212202

The UNIX kernel will dynamically grow a process's stack in virtual memory as needed, but it will never try to shrink it. Consider the case in which a program calls a C subroutine that allocates a local array on the stack that consumes 10K. The kernel will expand the stack segment to accommodate it. When the subroutine returns, the stack pointer is adjusted and this space could be released by the kernel, but it is not released. Explain why it would be possible to shrink the stack at this point and why the UNIX kernel does not shrink it.

Reference no: EM131212202

Questions Cloud

Invoicing-inventory management-customer management : The POS database must support the following subsystems: Invoicing, Inventory Management, Customer Management, and Employee Management.
With respect to the distribution in redemption : Bristlebird Corporation (E&P of $700,000) has 3,000 shares of common stock outstanding. Juan owns 1,500 shares and his wife, Roberta, owns 1,500 shares. Juan and Roberta each have a basis of $90,000 in their Bristlebird stock. In the current year, Br..
What is the maximum size of each segment : Assume that a task is divided into four equal-sized segments and that the system builds an eight-entry page descriptor table for each segment. Thus, the system has a combination of segmentation and paging. Assume also that the page size is 2 Kbyte..
What is the format of the processor''s logical address : Consider a paged logical address space (composed of 32 pages of 2 Kbytes each) mapped into a 1-Mbyte physical memory space
Why the unix kernel does not shrink it : When the subroutine returns, the stack pointer is adjusted and this space could be released by the kernel, but it is not released. Explain why it would be possible to shrink the stack at this point and why the UNIX kernel does not shrink it.
Design and implement in a network : Which of the FCAPS models, in your view, is the most difficult to design and implement in a network, and why?
Briefly describe the three types of processor scheduling : What is the difference between turnaround time and response time?
Project initiation and planning process : As the Systems Analyst, you are starting the Project Initiation and Planning process.  You want to pull your team together so that you are all on the same page as to what this process involves.
Briefly define shortest-process-next scheduling : Briefly define shortest-remaining-time scheduling. 9.10 Briefly define highest-response-ratio-next scheduling.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Importance of datatypes

Discuss the importance of understanding the required datatypes to be used in microcontroller applications. Include an explanation of why utilization of proper datatypes is even more critical for embedded applications than those of general purpose ..

  Difference between a pretest loop and a posttest loop

Describe the difference between a pretest loop and a posttest loop.

  How important specific programming features are of each type

how important specific programming features are for each type of game.

  Describe the tasks and business functions

Describe the tasks and business functions that users, managers, and IT staff members perform to achieve specific results

  Interfaces using code fragment or a complete program

Pick one of the most useful interfaces defined by the .NET framework (e.g. IComparable, IComparer, etc), and describe a real world scenario that you would use one of these interfaces using code fragment or a complete program.

  Determine the normal force of the tines at a

If the coefficient of static friction between the bar and the wood is µs = 0.5 , determine the normal force of the tines at A on the upper board. Assume the surface at C is smooth.

  Design a physical data model incorporating

Design a physical data model incorporating U.I.D. number, student name, faculty name, attempted course, course taught, acceptance date, and grade achieved as an entity in the illustration.

  Calculate the total time required to transfer a 1.5-mb file

Zero transmit time as in (c), but during the first RTT we can send one packet, during the second RTT we can send two packets, during the third we can send four = 23-1 , and so on. (A justification for such an exponential increase will be given in ..

  Analysis of the application of technology

Google is an international corporation that specializes in internet services and products. It was started by Larry Sergey Bin and Larry page.

  Various aspect of coding style

Explain following various aspect of Coding Style :The  Messy Code  Trap ,Decomposition

  Why rows could be lost

If I was using an SQL inner join, and some rows were lost, can you tell me a) why rows could be lost, and b) how could you figure out exactly which rows were lost?

  Determining the improvement of operations

What kind of an impact will FOSS have on the enterprise? Will it lead to an improvement of operations, help make better decisions, provide a competitive advantage for strategic use of IT?

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