Configuring for Multiple Thread OperationIn a multithreaded operating  dịch - Configuring for Multiple Thread OperationIn a multithreaded operating  Việt làm thế nào để nói

Configuring for Multiple Thread Ope

Configuring for Multiple Thread Operation
In a multithreaded operating system, you can make multiple calls to a DLL or shared library simultaneously. You can select the thread to execute the library call from the Thread section on the Function tab of the Call Library Function dialog box. The thread options are Run in UI thread and Run in any thread. If you select Run in UI thread, the Call Library Function Node switches from the thread the VI is currently executing in to the user interface thread. If you select Run in any thread, the Call Library Function Node continues in the currently executing thread. By default, all Call Library Function Nodes run in the user interface thread.

Before you configure a Call Library Function Node to run in any thread, make sure that multiple threads can call the function simultaneously. In a shared library, code can be considered thread-safe when:

It does not store any global data, such as global variables, files on disk, and so on.
It does not access any hardware. In other words, the code does not contain register-level programming.
It does not make any calls to any functions, shared libraries, or drivers that are not thread safe.
It uses semaphores or mutexes to restrict access to global resources.
It is called by only one non-reentrant VI.
Note All calls to LabVIEW-built shared libraries should specify Run in any thread. If you configure the Call Library Function Node using LabVIEW-built shared libraries and specify Run in UI thread, LabVIEW might hang and require you to restart.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Configuring for Multiple Thread OperationIn a multithreaded operating system, you can make multiple calls to a DLL or shared library simultaneously. You can select the thread to execute the library call from the Thread section on the Function tab of the Call Library Function dialog box. The thread options are Run in UI thread and Run in any thread. If you select Run in UI thread, the Call Library Function Node switches from the thread the VI is currently executing in to the user interface thread. If you select Run in any thread, the Call Library Function Node continues in the currently executing thread. By default, all Call Library Function Nodes run in the user interface thread.Before you configure a Call Library Function Node to run in any thread, make sure that multiple threads can call the function simultaneously. In a shared library, code can be considered thread-safe when:It does not store any global data, such as global variables, files on disk, and so on. It does not access any hardware. In other words, the code does not contain register-level programming. It does not make any calls to any functions, shared libraries, or drivers that are not thread safe. It uses semaphores or mutexes to restrict access to global resources. It is called by only one non-reentrant VI. Note All calls to LabVIEW-built shared libraries should specify Run in any thread. If you configure the Call Library Function Node using LabVIEW-built shared libraries and specify Run in UI thread, LabVIEW might hang and require you to restart.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Cấu hình cho Nhiều chủ đề hoạt động
trong một hệ điều hành đa luồng, bạn có thể thực hiện nhiều cuộc gọi đến một DLL hoặc thư viện chia sẻ cùng một lúc. Bạn có thể chọn các chủ đề để thực hiện các cuộc gọi thư viện từ phần chủ đề trên các tab chức năng của Call Library hộp thoại Function. Các tùy chọn chủ đề đang chạy trong thread UI và chạy ở bất kỳ chủ đề. Nếu bạn chọn Run trong UI thread, các chức năng Node Gọi Library chuyển từ các thread VI hiện đang thực hiện trong các chủ đề giao diện người dùng. Nếu bạn chọn Run trong bất cứ chủ đề, Chức năng Node Gọi Library tiếp tục trong các chủ đề hiện đang thực hiện. Theo mặc định, tất cả Chức năng Call Library nút chạy trong chủ đề giao diện người dùng. Trước khi bạn cấu hình một Call Thư viện Chức năng Node để chạy trong bất cứ chủ đề, hãy chắc chắn rằng nhiều chủ đề có thể gọi chức năng cùng một lúc. Trong một thư viện chia sẻ, mã có thể được coi là chủ đề an toàn khi: . Nó không lưu trữ bất kỳ dữ liệu toàn cầu, chẳng hạn như các biến toàn cầu, các tập tin trên đĩa, và như vậy nó không truy cập vào bất kỳ phần cứng. Nói cách khác, các mã không chứa chương trình đăng ký cấp. Nó không thực hiện bất kỳ cuộc gọi đến bất kỳ chức năng, thư viện chia sẻ, hoặc trình điều khiển mà không phải là chủ đề an toàn. Nó sử dụng semaphores hoặc mutexes để hạn chế quyền truy cập vào các nguồn tài nguyên toàn cầu. Nó được gọi là bởi chỉ có một phi reentrant VI. Lưu ý Tất cả các cuộc gọi đến các thư viện chia sẻ LabVIEW-xây dựng nên xác định Run trong chủ đề bất kì. Nếu bạn cấu hình các chức năng Node Gọi Thư viện bằng cách sử dụng thư viện chia sẻ LabVIEW-xây dựng và chỉ định Run trong UI thread, LabVIEW có thể treo và yêu cầu bạn phải khởi động lại.









đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: