I'm curious to know if there's something similar to the Task Parallel Library from C# in Java and/or the Android SDK. Coming from a C# background, we're taught that making a new thread is a relatively heavyweight operation, and are instructed to use the threadpool, or more recently, Tasks.
So in my mind, the level of abstraction that Tasks bring would be ideal ... is there anything like that, or even the threadpool? or does it all just involve making a new Thread or making my own threadpool
Sure it does. You can read more about it here: Executors
Also, you could overview the whole concurrency topic at the same page: Concurrency
See http://developer.android.com/reference/java/util/concurrent/package-summary.html for threadpool info.
I think that the java.util.concurrent package has most of the classes/functionality you are looking for.
Specifically, take a look at these:
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