V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ROMANLIU  ›  全部回复第 2 页 / 共 2 页
回复总数  22
1  2  
2022-09-25 12:10:37 +08:00
回复了 hpan 创建的主题 问与答 最近三两年,有谁买过哪台电视后感觉是买对了的吗?
@whusnoopy 理是这么个道理,但是国内估计这种需求很大;就和短视频这种东西一样,有的人觉的很讨厌,但是架不住有认爱看...
2022-04-07 17:15:27 +08:00
回复了 frank1256 创建的主题 Java Servlet3.0 的异步,实战中有哪些场景呢
@bthulu
start 的 JavaDoc 里是这样描述的:
Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable. The container may propagate appropriate contextual information to the Runnable.

其中的 managed thread pool 应该和 Http Worker TheadPool 不一样,是 Servlet Container 管理的默认的业务线程池,所有调用 start 的地方都会共享这个默认的线程池。
使用自行的 ThreadPoolExecutor 应该是更好的选择。
1  2  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5305 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 06:58 · PVG 14:58 · LAX 23:58 · JFK 02:58
♥ Do have faith in what you're doing.