Java supports application to run asynchronous tasks through various mechanisms, what exactly is a task? JavaDocs: https://docs.oracle.com/javase/tutorial/essential/concurrency/index.html
Task is just a unit of work in the abstract sense. You have tasks of some type, and then you have mechanisms to perform those tasks in an asynchronous way.
A simple example would be instances of Runnable
or Callable
(or even FutureTask
if you want to have the name "task" in it) for the tasks, and an ExecutorService to run them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With