goldpumpkin
V2EX  ›  问与答

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

  •  
  •   goldpumpkin · Apr 27, 2020 · 2244 views
    This topic created in 2393 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   ·   2107 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:21 · PVG 22:21 · LAX 06:21 · JFK 09:21
    ♥ Do have faith in what you're doing.