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 3989920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:25:56+00:00 2026-05-20T06:25:56+00:00

I think that both (generational and incremental) are different approaches to make the garbage

  • 0

I think that both (generational and incremental) are different approaches to make the garbage collection pauses faster. But what are the differences between generational and incremental? How do they work? And which one is better for real time software / produces less long pauses?

Also, the Boehm GC is any of those?

  • 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-05-20T06:25:56+00:00Added an answer on May 20, 2026 at 6:25 am

    A generational GC is always incremental, because it does not collect all unreachable objects during a cycle. Conversely, an incremental GC does not necessarily employ a generation scheme to decide which unreachable objects to collect or not.

    A generational GC divides the unreachable objects into different sets, roughly according to their last use – their age, so to speak. The basic theory is that objects that are most recently created, would become unreachable quickly. So the set with ‘young’ objects is collected in an early stage.

    An incremental GC may be implemented with above generational scheme, but different methods can be employed to decide which group of objects should be sweeped.

    One might look at this wikipedia page and further downward, for more information on both GC methods.

    According to Boehm’s website, his GC is incremental and generational:

    The collector uses a mark-sweep
    algorithm. It provides incremental and
    generational collection under
    operating systems which provide the
    right kind of virtual memory support.

    As far as a real time environment is concerned, there are several academic research papers describing new and ingenious ways to do garbage collection:

    • Nonblocking Real-Time Garbage Collection
    • Real-time garbage collection by IBM has good explanation on differences.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I think that Controller and Command are the same because they both encapsulate
I feel that both are the same thing, but I am not sure.
I think that handlers in android are tools to get different objects that are
I think that some newer languages like JS can do this natively, but I
I think that I'm probably not writing lazily instantiated methods/attributes in the most ruby
just think that when I opened my file then when I want to write
I think that this problem can be sorted using reflection (a technology which I'm
I think that Visual Studio's biggest let down is the Javascript editor. I have
I think that the zipper is a beautiful idea; it elegantly provides a way
I think that looking at others' code is a good way to learn. I'm

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.