Thread.new « Threads « Ruby






1.Create threads in a while loop
2.Pass value into a thread
3.Use upto to create 3 threads
4.manipulate variables from the outer scope
5.Access the thread-local data from outside
6.True local variables (not accessible from outside)