【问题标题】:Can multiple Android IntentServices run at the same time?多个 Android IntentService 可以同时运行吗?
【发布时间】:2014-09-16 22:49:48
【问题描述】:

据我了解,IntentService 一次只能处理一个 Intent,因为它共享一个工作线程来完成所有工作。但是如果我的应用中有多个IntentServices,它们可以并行运行,还是它们都共享一个工作线程?

【问题讨论】:

  • 以前没试过,何不试试?
  • 我很懒。我刚刚尝试过,它们确实是并行运行的。我会在一分钟内接受 CommonsWare 的回答...

标签: android android-intent service android-intentservice


【解决方案1】:

但是如果我的应用中有多个 IntentService,它们可以并行运行吗

如果你的意思是你有多个IntentService 的子类,它们应该能够并行运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-18
    • 2016-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多