Talk:Linux CPU utilization: Difference between revisions

→‎OS specific task: Virtualbox was my friend :-)
(→‎OS specific task: Virtualbox was my friend :-))
Line 16:
: Actually, it's probably better to have something like this be OS-specific. I've seen plenty of other tasks which are written in a way which implies they are OS-agnostic but where the difficulty of implementation is trivial for implementations which assume a specific OS context and near to implement portably without such assumptions. It'll never be perfect. And this one seems simple enough.
: That said, this one can be a pain if you don't have access to a linux implementation of your language. You can approximate, though, by using a surrogate file (representing /proc/stat) and code against that (changing it between reads). --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 16:04, 27 May 2015 (UTC)
 
::I fired up virtualbox with an Ubuntu image to create the Python version. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 16:59, 27 May 2015 (UTC)
Anonymous user