Re: C is too old? opinions?
- From: "Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx>
- Date: 13 Jul 2006 14:06:38 -0700
Phlip wrote:
goose wrote:
Now I'm really curious; how does the garbage collector run in
deterministic time? Is it possibly a case of running the gc after every X
operations knowing that no more than Y memory has to be released and that
doing that will require no more than Z time?
Making a garbage collector deterministic would defeat the point of a
garbage collector - trading programming time for run time.
If the programmer must specify "please collect this and this object, now,
before the next real-time strobe", they might as well use pointers and
'free()'...
There's no reason why the programmer must specify that. It can be
dealt with entirely inside the garbage collector. The GC system can
use a real-time algorithm and gaurantee that any allocation uses only
some amount of time X. See my reply to goose.
.
- References:
- Re: C is too old? opinions?
- From: Rob Thorpe
- Re: C is too old? opinions?
- From: goose
- Re: C is too old? opinions?
- From: Phlip
- Re: C is too old? opinions?
- Prev by Date: Re: maths for programming
- Next by Date: Re: C is too old? opinions?
- Previous by thread: Re: C is too old? opinions?
- Next by thread: Re: C is too old? opinions?
- Index(es):
Relevant Pages
|