Tutorial about Using multi-threading in jdbc

前端 未结 7 871
别跟我提以往
别跟我提以往 2020-12-24 00:54

Our company has a Batch Application which runs every day, It does some database related jobs mostly, import data into database table from file for example.

There are

7条回答
  •  我在风中等你
    2020-12-24 01:03

    I am not all that familiar with JDBC but regarding the multithreading bit of your question, what you should keep in mind is that parallel processing relies on effectively dividing your problem into bits that are independent of one another and in some way putting them back together (their output that is). If you dont know the underlying dependencies between tasks you might end up having really odd errors/exceptions in your code. Even worse, it might all execute without any problems, but the results might be off from true values. Multi-threading is tricky business, in a way fun to learn (at least I think so) but pain in the neck when things go south.

    Here are a couple of links that might provide useful:

    • Oracle's java trail: best place to start
    • A good tutorial for java concurrency
    • an interesting article on concurrency

    If you are serious about putting effort to getting into multi-threading I can recommend GOETZ, BRIAN: JAVA CONCURRENCY, amazing book really..

    Good luck

提交回复
热议问题