Sohail Zahid
Sohail Zahid

Reputation: 8149

Android ScheduledExecutorService

ScheduledExecutorService

Is ScheduledExecutorService run on main thread or on background thread i go throught the documentation here but didt found.

Any help will be appreciated.

Upvotes: 0

Views: 462

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006574

ScheduledExecutorService uses background threads, from a thread pool specified implicitly or explicitly when you create an instance from the Executors set of factory methods.

Note that ScheduledExecutorService is a standard Java class (java.util.concurrent.ScheduledExecutorService). The main application thread is something from the Android framework.

Upvotes: 2

Related Questions