正在加载图片...
Benefits of threads less time to create(10 times )and terminate than doing the same thing to a process less time to switch between two threads within the same process parallel processing -multiple threads executing simultaneously on different processors communication between different executing modules within the same process In most Os, communication between independent processes requires the intervention of the kernel to provide protection and the mechanism needed for communication Because threads within the same task share memory and files, they can communicate with each other without invoking the kernel6 Benefits of threads • less time to create (10 times) and terminate than doing the same thing to a process • less time to switch between two threads within the same process • parallel processing -- multiple threads executing simultaneously on different processors. • communication between different executing modules within the same process – In most OS, communication between independent processes requires the intervention of the kernel to provide protection and the mechanism needed for communication. – Because threads within the same task share memory and files, they can communicate with each other without invoking the kernel
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有