I was wondering what would be the most efficient approach for implementing some kind of background task in java (I assume that it will be some kind of non-blocking Threads). To be more precise - I have Java code, and then at some point I need to perform a lengthy operation. What I would like to do is to execute this operation in the background so that the rest of the program can continue execution, and when this task is completed, just update some specific object that is. This change will then be detected by other components.
source
share