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
4 3374 gpraghuram 1,275
Recognized Expert Top Contributor
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
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
Too bad you are not using Windows. You could just call CreateProcessHe ap and you are done.
Too bad you are not using Windows. You could just call CreateProcessHe ap and you are done.
Thanks weaknessforcats ....
I am seriously looking for something like that(CreateProc essHeap) 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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 therefor I thought object_pool could help me
to reduce memory consumption.
So I wrote:
class OuterClass
|
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,
I'm a C++ newbie trying to use the Boost regex libraries. Here's my
situation.
My system is Red Hat Linux 9, using the Borland C++BuilderX Personal IDE
(which uses the g++ compiler).
|
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
various queries. The thinking behind is that this reduces the need to
getting and returning connections to the pool repeatedly if a page has
multiple calls to the DB, and each one manages its own connection. However,
this does requires more deliberate coding, like calling the...
|
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 boost is
being used a lot these days I thought some of you might have an answer.
I would greatly appreciate help with this, as I tried to search for an
answer for quite some time in vain.
I am getting error messages when I try to compile as soon as I put an
include to the boost library in the...
|
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. Below I give
a simple example of one way I am getting this
// Include files
#include <cmath>
#include <iostream>
#include <vector>
| |
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 is for windows XP. I'm not much of an unix person besides doing
simple ls and copy paste.
What I have done is to download the boost library: C:\boost_1_34_0
I downloaded the bjam library: C:\boost-jam-3.1.14-1-ntx86
|
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 boost::pool<>. I get a compiler error when an object of this type
is contained in my class and am not sure why. To be honest I have a
little but not a lot of experience with templates and it could simply
be obvious to a more experienced template user; however, the answer
escapes me.
Here is a...
|
by: Juha Nieminen |
last post by:
I tested the speed of a simple program like this:
//------------------------------------------------------------
#include <list>
#include <boost/pool/pool_alloc.hpp>
int main()
{
typedef std::list<intList_t; // default allocator
//typedef std::list<int, boost::pool_allocator<int List_t;
|
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 std::vector< ParamPtr > ParamPtrVector;
with:
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |