Jens Gulden wrote:
Hi Jens,

Jens M Andreasen schrieb:

This might be totally unrelated, but how do you avoid garbage-collection
kicking in at random?


It kind of is unrelated...
But do you know about the functionality of package "java.lang.ref"? The API-doc says:


Package java.lang.ref Description
Provides reference-object classes, which support a limited degree of interaction with the garbage collector. A program may use a reference object to maintain a reference to some other object in such a way that the latter object may still be reclaimed by the collector. A program may also arrange to be notified some time after the collector has determined that the reachability of a given object has changed.

i think the question is, how do you program real-time applications in java? you'd need to switch off the garbage collector entirely when the real-time thread runs, and only activate it when the system has cycles to spare. how do you do that?



-- Jörn Nettingsmeier Lortzingstr. 11, 45128 Essen, Germany http://spunk.dnsalias.org (my server) http://www.linuxaudiodev.org (Linux Audio Developers)






Reply via email to