add examples for multi-thread.