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

  • Home
  • SEARCH
  • 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 8454139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:56:47+00:00 2026-06-10T11:56:47+00:00

Generally, binary will deallocate automaticly when the count reference is none, but how to

  • 0

Generally, binary will deallocate automaticly when the count reference is none, but how to deallocate binary in a single process,before the process terminated??
thanks a lot!!

  • 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-10T11:56:48+00:00Added an answer on June 10, 2026 at 11:56 am

    Erlang uses reference counting for keeping track of where binaries are used. Whenever a process creates a binary, the count goes up, and whenever it is sent to another process, yet another increment is made. As the processes stop using the binary (i.e. don’t keep any variables bound to it anymore), the count will decrease.

    Whether a binary is used by a single process or multiple ones doesn’t really matter, since when the reference count is zero, the binary is automatically garbage collected. Therefore, even if you only use the binary in a single process, the Erlang VM will handle it for you.

    In fact, the general “rule” to apply is that a binary is, like any other data type in Erlang, automatically garbage collected.

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

Sidebar

Related Questions

Is there an easy (or generally accepted) way to load up a binary column
Generally,our fixes/patches for any bugs involves changes in multiple files and we will commit
Generally speaking, when given a cookie that has no expiration period, modern browsers will
Generally, how to save application data? In a binary file, or a database? In
FTP predominately provides two transfer modes: ASCII and BINARY. ASCII mode is generally intended
I've developed an equation parser using a simple stack algorithm that will handle binary
I've been looking for a good general purpose binary network protocol definition framework to
The general consensus these days seems to be that you do not store binary
Is there any speed/space/general performance gains in using array based implementation of a binary
Generally, message boxes work like this: if(ShowMessageBox(Title,Text,MB_YES_NO) == MB_YES) { //the user responded yes

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.