前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >我参与设计的一个android多线程框架,用于SAP customer briefing

我参与设计的一个android多线程框架,用于SAP customer briefing

作者头像
Jerry Wang
发布2019-12-10 17:50:46
4540
发布2019-12-10 17:50:46
举报

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://jerry.blog.csdn.net/article/details/103427672

for simplify reason I only list three carousel item ( News, Opportunity and Business History ).

UI thead will start thread1, 2 and 3 simultaneously For thread 1, 2 and 3: once they finish, they will trigger corresponding call back listener implemented in UI thread; for listener designed for thread1, it will start three new thread simultaneously: thread 4 , 5 and 6. Let’s define “a > b“ means a happens earlier than b: Regarding sequence, we can only ensure that a > b, b > c, b > d, b > e, we can NOT ensure the sequence among c, d, e, f, g

clipboard1
clipboard1

So if we use standard Android performance library, you will find that start and stop performance interaction step are not sequentially matched as “Start1, end1, start2, end2, start3, end3…“.

clipboard2
clipboard2

As confirmed by Stephan, our case is not supported by library. So we have implemented our own logic to record performance.

clipboard3
clipboard3
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-12-06 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档