Hi, i have a question. If i have two theards, each will sleep for a time,during wake up, the threads will read from Database and update certain fields. In case, both theads update the same record at the same time, Java will catch the exception(connection busy). How i going to use synchronized to control the threads so that one will wait for another to finish update record. Thanks.