Create Sync thread.java