From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



多线程和多道处理的区别是什么?



主要软件: LabVIEW Development Systems>>LabVIEW Base Development System
主要软件版本: 8.2.1
主要软件修正版本: N/A
次要软件: N/A

问题: 多线程和多道处理的区别是什么?

解答:

操作系统允许有成百上千个活跃的线程,跟有多少个处理器无关。操作系统决定如何在多个线程共享处理器时间。

多道处理意味着你在使用一台有多个处理器(CPU)的计算机。不是所有的操作哦系统都支持多处理器(Windows NT,2000,和XP支持多处理器,但是Windows 95 和 98不支持)。


在LabVIEW中,每个VI都可以配置一个首选的执行系统和优先级。默认的,对于一个"执行系统/优先级"对,LabVIEW为每个处理器分配一个线程。例如,在标准执行系统有着正常优先级的VI,在单处理器系统上运行在一个线程里,在双核系统里运行在两个线程里。



相关链接: KnowledgeBase 3S8R9F: Why Would I Want to Turn Off Multithreading in LabVIEW?
KnowledgeBase 416EBB0L: Does LabVIEW Take Advantage of Multi-Core of Hyperthreaded Processors
DeveloperZoneTutorial: Differences Between Multithreading and Multitasking for Programmers
Developer Zone Tutorial: LabVIEW and Hyperthreading

附件:





报告日期: 03/03/1998
最近更新: 08/14/2011
文档编号: DIRECT-3S8R7R