Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Thread.new « Threads « Ruby
Ruby
Threads
Thread.new
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)