Implement muti-threaded application