Update single thread sample code;
Add multi thread code implemented with thread module;