In our previous episode, Ewald said: > > cores' (no hyperthreading), and 0.5 if 'siblings' = 2 x 'cpu cores' > > (hyperthreading enabled). > Yeah, that could work, but then again the actual format of the data may > be different measured over several distributions: suppose all `:` all of > the sudden become `=`? Suppose that an identifier like `processor` > undergoes a slicht namechange to `processorid`?
True. /proc is indeed not very desirable in general, and might vary per architecture too. OTOH, even if CPUID works, and it is maintainable, it only is for one architecture, and in general in these cases the problem is getting it to work for the least popular targets/architectures, the most popular ones are usually easily implemented after a few googles, and also keeping them up to date is less of a problem. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
