// number of times to create threads and gather their ids privatestaticfinalint ITERATIONCOUNT = 50;
// Threads constructed per iteration. ITERATIONCOUNT=50 and // THREADCOUNT=50 takes about one second on a sun Blade 1000 (2x750mhz) privatestaticfinalint THREADCOUNT = 50;
// The thread local storage object for holding per-thread ids privatestatic ThreadId id = new ThreadId();
// Holds the per-thread so main method thread can collect it. JMM // guarantees this is valid after this thread joins main method thread. privateint value;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.