goldpumpkin
V2EX  ›  问与答

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

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