Sha256: 792e2eb0de78665d05907ffd050b5e212ea5e4f3896e3e50066a2d379a7a4b01
Contents?: true
Size: 255 Bytes
Versions: 1
Compression:
Stored size: 255 Bytes
Contents
require 'rubygems' require 'systemu' threads = [] (ARGV.shift || 10).to_i.times do t = Thread.new do status, stdout, stderr = systemu 'cat', :stdin => ('42' * 1024) [status, stdout[0..15]] end threads << t end threads.map{|t| p t.value}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
systemu-1.1.0 | a.rb |