LoginSignup
5
5

More than 5 years have passed since last update.

Rubyを使ってCPU1コアの使用率を100%にするためのワンライナー

Last updated at Posted at 2013-04-07

CPU1コアの使用率を100%にするRubyのワンライナーです。

 % ruby -e 'while (1); end'

※2013/4/7 追記
loopメソッドを使った内容をコメントでいただきましたので追記します。

ruby -e loop{}
5
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5