use multithread
add test cases for multithread model
add lib and example for ruby language