Multiple threads update same row in database at a time how to maintain consistence

后端 未结 5 1562
既然无缘
既然无缘 2021-01-14 04:19

In my java application multiple threads update same row at a time how to get consistence results ?

for example

current row value count =0; 
thread 1          


        
5条回答
  •  不要未来只要你来
    2021-01-14 05:07

    Your question is not 100% clear, but I guess you're looking for the different locking strategies: http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#locking

提交回复
热议问题