Some examples with multithreads