goldpumpkin
V2EX  ›  问与答

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

  •  
  •   goldpumpkin · Apr 27, 2020 · 1966 views
    This topic created in 2236 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   ·   2938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 15:12 · PVG 23:12 · LAX 08:12 · JFK 11:12
    ♥ Do have faith in what you're doing.