Skip to content

Commit 582a575

Browse files
committed
Require monitor, run with more threads.
1 parent 3722c7c commit 582a575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/tvar-demo.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'monitor'
12
require 'concurrent'
23

34
class UnsynchronizedBank
@@ -123,7 +124,7 @@ def grand_total
123124
RANDOM.rand(100))
124125
end
125126

126-
THREADS = 4
127+
THREADS = 8
127128
TRANSFER_PER_THREAD = TRANSFERS.size / THREADS
128129

129130
def test(bank_class)

0 commit comments

Comments
 (0)