a simple thread library(First Version) to implement threading