Re: Is it possible to find the number of cores

2014-04-12 Thread Cecil Westerhof
2014-04-12 17:20 GMT+02:00 Fergal Byrne : > (.. Runtime getRuntime availableProcessors) is a bit cleaner > Did not know that one. Definitely better. But I already changed the way I do it. I think I will use Runtime more often, so I do now: (def runtime (. Runtime (getRuntime))) (.availablePro

Re: Is it possible to find the number of cores

2014-04-12 Thread Fergal Byrne
(.. Runtime getRuntime availableProcessors) is a bit cleaner On Sat, Apr 12, 2014 at 4:18 PM, Cecil Westerhof wrote: > 2014-04-12 16:51 GMT+02:00 Patrick Kristiansen : > >> http://stackoverflow.com/questions/4759570/finding-number-of-cores-in-java >> > > Thanks. I use now: > (. (. Runtime (g

Re: Is it possible to find the number of cores

2014-04-12 Thread Cecil Westerhof
2014-04-12 16:51 GMT+02:00 Patrick Kristiansen : > http://stackoverflow.com/questions/4759570/finding-number-of-cores-in-java > Thanks. I use now: (. (. Runtime (getRuntime)) availableProcessors) > On Saturday, April 12, 2014 4:43:56 PM UTC+2, Cecil Westerhof wrote: >> >> I am experimentin

Re: Is it possible to find the number of cores

2014-04-12 Thread Patrick Kristiansen
http://stackoverflow.com/questions/4759570/finding-number-of-cores-in-java On Saturday, April 12, 2014 4:43:56 PM UTC+2, Cecil Westerhof wrote: > > I am experimenting with concurrent programming. Is it possible to > determine how many cores there are on a system? Because it is in the case I > am