Linux中的多处理和多线程之间的区别是什么? [英] What is the difference between Multiprocessing and Multithreading in linux>
本文介绍了Linux中的多处理和多线程之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hey Guys,
我对多处理和多线程概念感到困惑。我希望你有任何好的教程/解释。
谢谢
Amrit
Hey Guys,
I am bit confused about Multiprocessing and Multithreading concepts. I hope if you have any good tutorial/explanation for same.
Thanks
Amrit
推荐答案
多处理是在单个计算机系统中使用两个或多个中央处理单元(CPU)。多线程允许多个线程存在于单个进程的上下文中。这些线程共享进程的资源,但能够独立执行。
Multiprocessing is the use of two or more central processing units (CPUs) within a single computer system. Multithreading allows multiple threads to exist within the context of a single process. These threads share the process's resources, but are able to execute independently.
这篇关于Linux中的多处理和多线程之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文