[LCP]Dynamic libraries and plugins
Vincent.Penquerch at artworks.co.uk
Mon Jun 24 21:55:07 UTC 2002
> I have a also a question regarding dlopen and friends (and
> when it would
> make sense to use them)....
> Say I have a program which is executed often (maybe even
> several times a
> second) with many different options.
> Due to soooo many options would it make sense to put
> different parts of
> the code into seperate shared libs and call dlopen() by hand?
This may not answer your question directly, but if you call
your program very often, I'd keep a daemon running, and the
program itself would merely contact the daemon to tell it
what to do. This way, there is no init time (just when loading
However, depending on what you do, it might be too much in
memory (to keep the daemon in-core at all times). As usual,
YMMV, each situation may need a different setup.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linuxCprogramming