On the sixth day basic knowledge of java

 

 

 Here you are the church: how to create a thread pool and thread pool inside the task of how to submit.

 

 

 

 

This is taught how to generate within the scope of the thread pool

 

 

 

This is to say that the thread pool which, if repeated regularly performed

In addition, remember that he is still: when using threads: that code synchronization of concurrent execution threads that want to use, and then thread pool is to reduce consumption

Then the words of threads and processes, the process is a bigger concept, then the communication between the process than if communication between threads to trouble

 

 

 

Here is taught: every few seconds to perform tasks on a regular basis, it is how to do it

 

 

Here that is: you go though because this implements the appropriate interface, but this is not going to return value

If you need to return the value of the task, then you should realize is callable interface

 

 

 

 

 

 

 

Said here is: compared to the future future was supposed to get the corresponding results

So compared to have a better future after the complefuture like to use complefuture

 

 

 

Said here is: asynchronous execution

Then say is: go to the provisions of a thread Ali asynchronous execution is achieved by this complefuture, they may be specified in the order.

 

 

 

 

 

 

 

 

 Said here it is: how to use to divide and conquer

Here that the Fork / Join method is the thread pool

 

 

 

Said here is: multi-threaded inside the how to divide tasks into small tasks cut way is through the join and the like

Then probably know the thread pool partakers and rule thread pool can be.

 

 

 

 

 

 

Here say is: You can view the current thread is what, then, then you can view the current thread's log and the like.

 

 

 

 

 

 

 maven is to provide a set of standardized management module, which is the maven project.

For now I understand maven, that integrates a project a lot of stuff in there, that is what bin, class like integrated inside

 

 

 

 

 

 

maven thing would probably be to understand, to understand some of the concepts of maven, but the specific practical operation still do not understand.

 

Guess you like

Origin www.cnblogs.com/startFrom0/p/12545453.html