Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
修改时间 01-21-2016 07:29 PM
请教下一个生产者多个消费者这样可以么?
已解决! 转到解答。
修改时间 03-14-2016 10:48 PM
您好,
这主要看您如何理解多个消费者,您的截图中是使用了Case结构,对不同条件下的场景在消费者中执行出队列操作。这里本质上只有一个消费者循环。
如果有一个生产者循环和多个消费者循环,如果他们使用同一个队列,可能在执行出队列操作时会得到意想不到的数据信息,同一队列的元素会被多个消费者读取,队列中的某个元素只会被其中一个消费者读取。
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!