java - Exectuing JDBC bulk operation -


i have bulk jdbc operation exectuing concurretly (postgresql 9.4 jdbc driver). operation run 20-30 seconds. need understand happens thread operation being executed in. thought slept or being await until db-server start sending data jvm. so, tried check in debugger , i'm not sure that. here's example wrote test (i used spring simplicity):

public static void main(string[] args) {         applicationcontext context = new classpathxmlapplicationcontext("classpath:/applicationcontext.xml");         final dao dao = (dao) context.getbean("dao");         thread t = new thread(new runnable() {             public void run() {                 thread.currentthread().setname("bulk operation");                 dao.executebulk(); //1, bulk operation             }         });         t.start();     } 

i set breakpoin @ //1 , after resuming saw following in debugger:

enter image description here

so seems bulk thread neither asleep nor awaiting.

what thread while sql-server prepares data sent? how many resources jvm spend manage thread?


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -