Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Generally GC is not a good choice to get a soft real-time attribute. But Erlang is GC based language can be soft real-time.

Does it mean Erlang have almost no GC latency? How does it work?

share|improve this question
Even the hard real-time garbage collectors exists. E.g., lambda-the-ultimate.org/node/2393 –  SK-logic Apr 24 '12 at 15:20

1 Answer 1

up vote 7 down vote accepted

Erlang processes don't share memory, each one has its own heap and they can be garbage-collected independently.

Many small heaps result in many small GC-pauses, rather than few big ones.

share|improve this answer
Here's great write-up on Erlang's GC (which includes your point and makes a few others): prog21.dadgum.com/16.html –  scvalex Aug 5 '12 at 1:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.