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

关于booster-android-instrument-thread 针对ScheduledExecutorService线程优化的问题 #154

Closed
BigBigerWolf opened this issue Apr 13, 2020 · 0 comments · Fixed by #158

Comments

@BigBigerWolf
Copy link

Please provide the following informations.

  • System version
    --
  • Java version
    --
  • Gradle version
    --
  • Android Gradle plugin version
    --
  • Booster version
    1.5.1
  • Stack traces
    --

Booster对项目中使用ScheduledExecutorService的地方优化成Executors.newScheduledThreadPool(1);
有一种场景:两个任务需要在一段时间后同时被执行,如果核心线程>1 两者可以竞争,但核心线程为1 只能排队执行。对于两个任务存在互相竞争 比如各自轮询且依赖另一方的场景,优化后会导致一方不执行。

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

Successfully merging a pull request may close this issue.

1 participant