I need to implement a simple object manager. An object manager is another form of table, but we now store generic objects in a managed buffer (the internal implementation of a table varies based on need). Using a buffer means that we must directly manage the memory and references to objects. This means that our object manager must implement reference counting and a garbage collector, so that we properly handle creation and deletion of objects. The object manager's interface is given by the file ObjectManager.h and the implementation will be in the file ObjectManager.c. Your task is to implement the functions required for the object manager. This includes all the functions listed in ObjectManager.h, along with any (private) static functions that will be useful. You will also need to define appropriate data types and data structures for keeping track of the objects that have been allocated. You are NOT allow to change the prototypes of the functions that are provided to you in ObjectManager.h. To summarize, the functionalities you have to implement are:
• initPool() - Initialize the object manager upon starting.
• destroyPool() - Clean up the object manager upon quitting.
• insertObject(size) - request a block of memory of given size from the object manager.
• retrieveObject(id) - retrieve the address of an object, identified by the reference id.
• addReference(id) - increment reference count for the object with reference id.
• dropReference(id) - decrement reference count for the object with reference id.
• compact() - initiate garbage collection (see below).
• dumpPool() - print (to stdout) info about each object that is currently allocated including its id, start address, size and reference count.
Hi, Dear Employer!
I am really interested in your project.
I have enough experience in Python, C/C++, C#, java programming.
I am 100% sure I can satisfy your requirements perfectly.
User-Friendly Interface And Clear Algorithm Will Encourage Your Project.
I want a long-term relationship with you.
Thank you and best regards!
Hi there, I have read your project description and i'm confident i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the project. Thanks
Hi there,
please leave a message on my chat so we can discuss the budget and deadline of the project. I have read your project description and i'm confident i can do this project for you perfectly. Thanks
Nice to meet you.
Very very interested in your project.
Fast speed, Best quality, Delivering on time is my business style.
We have powerful skills and experiences of C/C++/C#/QT Desktop Application, PYTHON Script.
Thanks.
From your best friend
Hello, Sir.
I have sufficient experience and skill in C/C++ programming.
I can satisfy your project in time.
I believe you will select me.
Thank you.~_~
I hold a degree in Computer Engineering. I minored in Programming with a focus in c,c++, assembly. Whether independent or operating on a team my analytical approach to problem solving has been a plus. I believe my level of talent and work ethic would be a boon to any Kiwi project that required an developer. I would appreciate a chance to sit down for an interview and show you why I am the best candidate.i have experience of 2+ years in assembly language, assembler, c programming, c++ programming, c# programming
Kindly reply me soon so we can discuss more about this.
Thank you
Hi,dear. I am a senior software developer. I am very familiar with c/c++/c#. I have just checked your project description & attached files, I am able to complete this project. I am looking forward to your response. Thanks.
Hi there, I am expert programmer skilled and experienced in C and C++. I understand your project requirements and will be able to deliver the work as immediate as possible. Please message me to discuss more.