Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:47:43+00:00 2026-06-17T16:47:43+00:00

If I open a dynamic library using dlopen and my program terminates without a

  • 0

If I open a dynamic library using dlopen and my program terminates without a corresponding dlclose, will the reference count be decremented? If not, what happens? Will the library remain loaded until the next reboot?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:47:44+00:00Added an answer on June 17, 2026 at 4:47 pm

    Dynamic loader is a user-space code (ld.so.1 in linux/glibc). It is loaded into userspace of the program you are running, and doesn’t interact with other processes. So there is no global reference counters.

    There is, however, a way to share code of dynamic libraries between processes. Dynamic loader uses mmap() to load library code in process memory. mmap-ed data of the same library will be shared between all processes that use it (until they write anything to these data pages, this will create their own copy of data using COW). And when your program terminates, all mmap-ed regions are freed. You may consider this a kind of reference counter decrement – your copies of data pages are now released.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I open a library using dynamic loading in C++, can I later reload
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php53/modules/mailparse.so' - /usr/lib64/php53/modules/mailparse.so: cannot open
I am using an open source library and it builds to a file like
So I want to open dynamic class as something like that : using System
My group has been using the itext-sharp library and C#/.NET to generate custom, dynamic
Open Ankh seems to be using Subversion 1.6.2 and Tortoise uses Subversion 1.6.0. After
I am having a problem with the Dynamic Linq Library. I get a the
I am using ColorBox as a lightbox library. I want to use it to
I'm looking for a .NET (much preferably open source in C#) library for dealing
I'm looking for a good charting library for Java. It can be open source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.