472,325 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,325 software developers and data experts.

Using boost pool library!

12
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
Apr 15 '08 #1
4 3277
gpraghuram
1,275 Expert 1GB
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Apr 15 '08 #2
mavrik
12
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Thanks for ur reply...
But, do u think that my requirement gets fulfilled by Boosts lib..?
I want that I should be able to define the memory in the beginning of application, which my application will be using.
Which I think is not possible by Boost's pool lib.
What do you say??
-Thanks
Apr 15 '08 #3
weaknessforcats
9,208 Expert Mod 8TB
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Apr 15 '08 #4
mavrik
12
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Thanks weaknessforcats....
I am seriously looking for something like that(CreateProcessHeap) on Linux/Solaris...
If I am able to create a memory pool Heap for my process, by which all memory needed by process will be taken from that Heap, then my job is actuallty done..
Do u have any idea??
I m also searching on google. :)
-Thanks
Apr 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: porschberg | last post by:
Hi, I have question regarding the pool library. In my application I read a lot of data records from a database into a small data class and...
7
by: sbobrows | last post by:
{Whilst I think much of this is OT for this newsgroup, I think the issue of understanding diagnostics just about gets under the door. -mod} Hi, ...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to...
0
by: ufnuceda | last post by:
Hello everyone, I was wondering if any of you have some experience with the boost library. I am having trouble compiling code with it. Since...
3
by: Chris Jones | last post by:
Hi, I've experimenting with using boost::pool_allocator with std::vector and gcc (4.1)., and I am having problems with segmentation violations....
2
by: mr_gees100_peas | last post by:
Hi, I've been trying for days to make either boost.python or swig to work for me. The one I have gotten the closest to is boost. Note that this...
5
by: mackenzie | last post by:
Hello, I am looking for a little bit of help. I am trying to create a dynamically allocated object which contains one or more objects of type...
6
by: Juha Nieminen | last post by:
I tested the speed of a simple program like this: //------------------------------------------------------------ #include <list> #include...
0
by: varnie | last post by:
hell-o !~ i faced weird problem during usage boost::pool_allocator. after i've changed: typedef boost::shared_ptr< param > ParamPtr; typedef...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.