英文:
Does java uses more than one process to run the code
问题
Sure, here's the translated content:
Java中的多线程是如何工作的?如果我创建了一堆线程,JVM会如何将这些线程分配给进程?如果线程在进程之间创建,那么上下文切换会很昂贵吗?
英文:
how does the multi-threading in java works? if I create a bunch of threads how JVM allocates those threads across the processes. and if threads are created across the processes will the context switching be costly?
专注分享java语言的经验与见解,让所有开发者获益!
评论