I am a Java beginner that is currently studying Java Thread, and Java Synchronization.
From What I know,
If 1 people using Program A, and calling Thread 1 and use synchronized method "abc". And another person using the same program A, so the method will synchronize and block another thread from performing task.(use data in same database)
what happen if
1 people using program A calling Thread 1 and use method "abc", and another person using Program B calling Thread 2 BUT sharing the method of thread 1, and both of this program is accessing different database.
so it is 2 different programs, 2 threads but 1 method and 2 different database.
This 2 programs will wait for each other to perform task? because there are from different program and accessing different database BUT sharing same synchronized method.