Skip to content

Instantly share code, notes, and snippets.

@wuputah
Created January 10, 2012 07:56
Show Gist options
  • Save wuputah/1587739 to your computer and use it in GitHub Desktop.
Save wuputah/1587739 to your computer and use it in GitHub Desktop.
$s = Time.now
Thread.new { loop { puts "[#{Time.now - $s}] hi 1"; sleep 1 } }
Thread.new { loop { puts "[#{Time.now - $s}] hi 2"; sleep 2 } }
sleep 0.5
fork
sleep 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment