المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Memory Manager



C++ Programming
07-08-2009, 09:22 PM
1 Memory Manager
Consider a system which is designed to be portable across platforms. Each platform provides a memory manager - i.e. each platform exposes functions *****alent to new and delete. The system under consideration wants to keep a platform-independent memory management scheme. Assume that the system under consideration is coded only using C++. Please describe the following:
1. Approach
2. C++ class declaration for the new memory manager
3. The memory management strategies (strategies you will follow if the system under consideration is a browser)
4. How would you make sure that all the classes in the system use your memory manager? Provide C++ code for the same. Assume that “new” operator is used if an dynamic object of a class has to be created.


could anyone please provide me the correct answers??????