Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncTask vs. Loopers, Handlers, and HandlerThread #47

Open
lasking88 opened this issue Feb 9, 2018 · 0 comments
Open

AsyncTask vs. Loopers, Handlers, and HandlerThread #47

lasking88 opened this issue Feb 9, 2018 · 0 comments

Comments

@lasking88
Copy link
Collaborator

The application uses only AsyncTask class for dealing with threads.
The AsyncTask is designed for short-lived and not repeated too often.
The bigger the project is, the more AsyncTask calls are necessary.
Instead of using AsyncTask, dealing with threads directly would have better performance.
AsyncTask does not create a thread for each instance of it, but executed all instances
in a single thread. In other words, each instance runs one after the other.
Recommends to use handlers to communicate to the main threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant