4 ms·
Yes, but it's a good example of how Java is about twice as verbose to do the same work. The Ruby version of that can be written as simply: Thread.new{ ... thre
by speleding 2y ago
Yes, but it's a good example of how Java is about twice as verbose to do the same work. The Ruby version of that can be written as simply:
Thread.new{ ... thread code ...}.join
The extra verboseness quickly adds up if every statement takes twice as much code.