Simplify the way doing sampling multi-threads application.
No different between multi-threads and single-thread now
bump to 0.4.0