问题描述
Hello Guys,
请帮我解决以下问题。
问题陈述:我有控制器将输入作为消息并产生输出。控制器每秒只能接收10条消息。我在控制器顶部有一个应用程序,它可以创建消息并发送给控制器。我的应用程序可以每秒创建并向控制器发送100条消息。
由于控制器每秒只能接收10条消息,我将如何在c ++中解决这个问题。 />
我觉得队列可以用,但是sombody告诉我它很贵。
请告诉我你的想法在这个。
问候,
Joy
Hello Guys,
Please help me in below problem.
Problem Statement: I have a controller that takes input as message and produce output.The controller can only receive 10 messages per second. I have an application on top of controller that would create message and send to controller. My application can create and send to controller 100 messages per second.
As controller can receive only 10 message per second, how will I solve this problem in c++.
I think queue can be used but sombody told me it's very costly.
Please let me know your thought on this.
Regards,
Joy
推荐答案
这篇关于Threding问题/同步问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!