Difference between Async task and Thread

Discussion in 'Spigot Plugin Development' started by Hex_27, May 1, 2017.

  1. What's the difference between using Java's Thread class, and using Async task from bukkit?
     
  2. Async tasks are not run off of the main thread, creating another Thread should have the same effect.
     
  3. I think Async is more resource efficient? Not sure
     
  4. Iirc async tasks draw from a pool of threads that were already created by the server, and giving a task to an existing thread is more resource efficient than creating an entirely new one

    Sent from my Nexus 5 using Tapatalk
     
    • Agree Agree x 2
    • Informative Informative x 2