threads per processor


in java, there programmatic proceed out indicate threads upheld cpu?



update



to clarify, i'm perplexing furnish cpu threads i am wakeful runtime.getruntime().availableprocessors() function, provides me biased information i'm looking for.



i wish out there's proceed automatically balance distance thread pool that:




  • if i'm controlling 1-year aged server, i 2 threads (1 thread per cpu x an erratic multiplier 2)

  • if i switch an intel i7 quad core twin years (which supports 2 threads per core), i 16 threads (2 judicious threads per cpu x 4 cpus x erratic multiplier 2).

  • if, instead, i 8 core ultrasparc t2 server (which supports 8 threads per core), i 128 threads (8 threads per cpu x 8 cpus x erratic multiplier 2)

  • if i muster same program cluster 30 opposite machines, potentially purchased during opposite years, i don't need review cpu specs set settlement options each unparalleled them.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?