Is executeUpdate method in Java thread-safe

前端 未结 2 1165
北恋
北恋 2021-01-16 00:15

I have multiple threads trying to update a MySQL database? is executeUpdate method thread-safe to use?

2条回答
  •  感情败类
    2021-01-16 00:29

    Consider making your update methods using a synchronized keyword and think about your concurrency threads deadlocks there

提交回复
热议问题