Managed threads are somewhat heavyweight and are associated with metadata, such as the transaction context and security context.
托管线程是重量级的,与元数据相关联,如事务上下文和安全上下文等。
This is a recipe for trouble because in some JVMs, creating a Thread is a heavyweight operation, and it's far better to reuse existing Threads than to create new ones.
这可以解决一些问题,因为在一些 JVM 中,创建 Thread 是一项重量型的操作,重用现有 Thread 比创建新线程要容易得多。
应用推荐