goldpumpkin
V2EX  ›  问与答

请教老哥们,创建线程池及使用的最佳实践哪里有呢

  •  
  •   goldpumpkin · Apr 27, 2020 · 1962 views
    This topic created in 2233 days ago, the information mentioned may be changed or developed.
    4 replies    2020-04-28 12:37:24 +08:00
    whynimal
        1
    whynimal  
       Apr 27, 2020
    创建线程池干啥?
    liyanggyang
        2
    liyanggyang  
       Apr 28, 2020
    阿里巴巴规范嘛, 用 ThreadPoolExecutor
    sonice
        3
    sonice  
       Apr 28, 2020
    记得给线程命名就行了
    fmumu
        4
    fmumu  
       Apr 28, 2020 via Android
    @sonice 命名挺重要,不然线程 dump 看的一脸懵
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3366 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    ♥ Do have faith in what you're doing.