多的Andr​​oid IntentServices可以在同一时间运行?

编程入门 行业动态 更新时间:2024-10-12 03:24:58
本文介绍了多的Andr​​oid IntentServices可以在同一时间运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

据我了解,一个 IntentService 只能处理一个意图在一时间成为这股工作线程来完成所​​有的工作。但是,如果我在我的应用程序有多个 IntentService S,它们可以并行运行,还是他们都有着一个工作线程呢?

解决方案   

但是,如果我有多个IntentServices在我的应用程序,它们可以并行运行

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

From what I understand, an IntentService can only handle one Intent at a time as it shares a worker thread to do all of its work. But if I have multiple IntentServices in my app, can they run in parallel, or do they all share the single worker thread as well?

解决方案

But if I have multiple IntentServices in my app, can they run in parallel

If you mean that you have multiple subclasses of IntentService, they should be able to run in parallel.

更多推荐

多的Andr​​oid IntentServices可以在同一时间运行?

本文发布于:2023-11-24 00:28:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   在同一   Andr   oid   IntentServices

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!