[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The future of C/C++

Steve Baker wrote:

> Garbage collection is an unpredictable consumer of time.  Your
> program runs along nicely at an acceptable frame rate allocating
> and deallocating memory and then suddenly *KAPOW* the garbage
> collector kicks in and eats 100 milliseconds of your CPU time.

Multithreading is also a good provider of non-fun and scheduling woes.
Oh, did that other thread on another CPU touch your page of memory
(while not actually touching your struct, all out of control)? Sorry,
we're closed for inter-CPU cache coherency communication and cache
flushing and re-filling... Not even thinking about the too-common
context switching going on with threads, breaking the pipelines and
cache (in a different way that mess up both SMP and UP systems this


"Unix was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things." -- Doug Gwyn

To unsubscribe, e-mail: linuxgames-unsubscribe@sunsite.dk
For additional commands, e-mail: linuxgames-help@sunsite.dk