Page 97 - DCAP408_WEB_PROGRAMMING
P. 97
Unit 5: Memory Management (I)
5.9 Review Questions Notes
1. Make distinction between local memory and global memory.
2. Illustrate the Size and Alignment Requirement in global memory.
3. What are local memory bocks? Illustrate their functions.
4. What are the steps used in assigning and using memory?
5. Explain the concept of using Fixed Memory Blocks with examples.
6. What is stFixedMemAlloc function? Define its parameters and return values.
7. Illustrate how to declare the function stFixedMemInit function. Also discuss its parameters
and return values.
8. Explain the function used for changing the size of a memory block.
9. What are the various parameters used in LocalReAlloc()? Illustrate.
10. Windows can reallocate a discardable memory block to a 0 length when it requires space
to gratify another allotment request. Comment.
Answers: Self Assessment
1. Global 2. specifiers
3. Local 4. heap
5. LocalAlloc 6. Fixed size memory
7. ST_USE_FIXMEM 8. realloc
9. malloc (newsize) 10. null
11. LocalReAlloc 12. hMem
13. uFlags 14. discardable
15. reloading
5.10 Further Readings
Books Brent E. Rector, Win32 Programming, Addison-Wesley
Charles Petzold, Programming Windows, Charles Petzold
Roger Mayne, Windows and Graphics Programming with Visual C++.NET, World
Scientific
Online link ldp.org/LDP/tlk/mm/memory.html
LOVELY PROFESSIONAL UNIVERSITY 91