non-blocking communications in MPI: order of messages [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What happens if a processors sends exactly the same message to the same destination with the same tag? When the receiver wants to read it, does it read the last one?
What if two different processors send the same message (same tag) to one processor? which one it receive and in what order?
3- How we can know how many pending messages from a specific processor are in the queue in order to receive all of them?

Related

how to send data to PC over JTAG/debugger [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am using a PEmicro USB Multilink Universal JTAG.
I have a Cortex M4 processor running a custom C++ RTOS with no filesystem.
I need to trace execution of some functions to debug a problem but since I don't have a filesystem, I'd have to use a RAM circular buffer.
QUESTION
Is it possible to write the trace data over the JTAG/debugger connection to the PC? Even if this can't be done full-speed, it would still be useful to me.

Count distinct elements from a concurrently read stream [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have multiple listeners threads reading a stream of messages (Kafka). Each message has an identifier. The consumers/stream guarantees at-least once consumption. At most of the time, the stream would provide the message exactly once. The count of messages to expect is known beforehand. When all messages are received, I want to shutdown all listener threads. The number of messages can be at most 50 million. What data structure is most suitable for this?
I was thinking of using std::set, std::map and using a mutex at each insertion of the thread. Can a single thread be actually faster in such a use-case? Is there something more optimal?
std::unordered_map would be better. But you should consider using something like HyperLogLog

Usrp Full Duplex Operation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a USRP N200 with WBX daughterboard. I'd need a simple C/C++
program that can simultaneously receive and transmit. but I can't find It.
Look at the examples that come with UHD. There's the txrx loopback example which does exactly that.
In essence, it's not complicated:
spawn a thread for receiving and one for transmitting. This is optional, but it will make your system much less prone to receive sample over- or transmit sample underruns.
create an rx_streamer and a tx_streamer
In the RX thread, call the rx_streamer->recv() method repeatedly in the TX thread, tx_streamer->send() method repeatedly.

should I use ace_select_reactor or ace_dev_poll_reactor [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I dont know which reactor to choose use ace_select_reactor or ace_dev_poll_reactor.
The reactor is used for listening of incoming open connection events on a server which uses unix domain socket
from: *Dev_Poll__Reactor.html#details">http://www.riverace.com/ACE/ace55/html/ace/classACE_Dev_Poll_Reactor.html#_details*
The ACE_Dev_Poll_Reactor uses the /dev/poll' or '/dev/epoll' character devices to demultiplex events on a given set of file descriptors. Unlike select(),/dev/poll' and `/dev/epoll' have no hard-coded limit on the number of file descriptors that may be handled at any given time. As such, the ACE_Dev_Poll_Reactor can generally handle a much larger number of file descriptors than select() -based reactors.
but I have to notice that's only available certain UNIX platforms

How to get network message in the application level? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
In my c++ application, I want to get the HTTP messages such like GET/200OK, and then parse them in to my own struct. How can I get them from the networking card in the run time?
You can try using libucyrl mentioned in this answer.
Also you can write your own TCP client/server application and read the data from sockets, then parse it the way you want it. In this case is better to familiarize first with the HTTP protocol.
I think some tutorials might be useful too, so here are a couple of links:
http://www.freeos.com/articles/4121/
http://www.jmarshall.com/easy/http/