Created
February 13, 2019 03:40
-
-
Save hankliu5/b6b0ac7fb2894b0b0e52dd39075ca520 to your computer and use it in GitHub Desktop.
Revisions
-
hankliu5 created this gist
Feb 13, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ array = Array.new() t1 = Thread.new { array.append(4) } t2 = Thread.new { array.append(7) } t1.join t2.join puts array.size