how to run two threads parallel...give simple example code