Solved

how to preload a shared object

Posted on 2009-07-15
8
270 Views
Last Modified: 2013-12-15
the requirement is i have .so file  shared.so which linked with b.exe  i have not used any dlopen() to load it is just early run time loading, i heard if we preload this shared.so file

the execution will be improved ? so how to preload a shared.so file.
0
Comment
Question by:tittu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 53

Expert Comment

by:Infinity08
ID: 24857908
If you add the name of the shared library file to the LD_PRELOAD environment variable, it will be pre-loaded when starting your application, ie. potentially overriding standard C library functions.
However, I'm not sure that's what you meant when you were talking about pre-loading.

Could you clarify what you mean by pre-loading, and where you heard that the "execution will be improved" ?
0
 

Author Comment

by:tittu
ID: 24859055
I think all the Standard applications use pre-loading concept in fact firefox will have its preloader,
gnome nautilus will have its own preloader.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24859998
The kind of preloader you're talking about is only useful if you start and stop your application frequently. Is that the case ?
The Firefox Preloader you mentioned, for example, would actually load most of firefox into memory whether you're running it or not, so that when you actually start it, it's faster. Personally, I think it's a bit silly ... If you want to avoid slow startup times, then just don't re-start it once it's started ... You achieve the exact same thing as when using the preloader.

If you want the same thing, then you can just write another application that loads the shared library in memory, and keep it running. When you start your main application, it should use the already loaded shared library, and might thus be slightly faster.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:tittu
ID: 25366382
not useful comments not expertise
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 25366441
What do you mean by that ?
0
 

Author Comment

by:tittu
ID: 25371597
I need the .so file should be loaded into memory so that the process/exe depends on the .so  start up time will be faster
0
 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 total points
ID: 25371901
Yes. And that's what I explained in http:#24859998. Which part of it do you want clarification on ?
0
 

Author Closing Comment

by:tittu
ID: 31603643
i cant understand
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
$_GET call between URL 3 69
sed/awk/tail: how to read 3'de last line 4 68
ifconfig related commands 6 23
Code planning methods/tools? 5 56
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question