jaya and multithreading