1
vote
2answers
266 views

How can I avoid concurrent access in PostgreSQL?

I would like to have your opinion, how I can handle the case when PDO engine and Hibernate engine "talk" to the same db? There is a PHP application as frontend, and a Java doing some job after user ...
2
votes
1answer
240 views

How to achieve thread synchronizing without effecting the efficiency in java [closed]

Say using following function: public synchronized int getUnique(){ MyObject obj = getValueFromDb(); obj.modifyIt(); obj.commit(); } When simultaneous call is made to this method several ...