diff options
Diffstat (limited to 'sample/philos.rb')
| -rw-r--r-- | sample/philos.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sample/philos.rb b/sample/philos.rb index 5c8f43c819..c38aa4a1cc 100644 --- a/sample/philos.rb +++ b/sample/philos.rb @@ -1,14 +1,13 @@ # # The Dining Philosophers - thread example # -require "thread" srand #srand N=9 # number of philosophers $forks = [] for i in 0..N-1 - $forks[i] = Mutex.new + $forks[i] = Thread::Mutex.new end $state = "-o"*N |
