Data transfer specifics for a queue
4 views (last 30 days)
Show older comments
Commented: Jim Hokanson on 6 Jan 2018
Documentation for parallel.pool.DataQueue and parallel.pool.PollableDataQueue says next to nothing about how data is transferred between the client and workers. I have two questions in particular about this functionality, although any related details would be much appreciated.
- What can or can't be sent through the queue. During debugging I sent a daq session through the queue and although it appeared to transfer fine all the properties of the class were empty.
- My understanding is that workers and the client are in separate processes (with separate memory management). When sending data through a queue what sort of locking takes place to transfer data between the processes? For example, does the worker somehow lock the client's memory management system while sending a message to the client, and similarly, have to wait for that lock if the client is doing memory allocation?
Walter Roberson on 6 Jan 2018
A message type interface is used, implemented through Java. The source elements are serialized, the serialized version transmitted, and the destination deserializes. The destination receives the information when convenient for it, so it cannot interfere with memory allocation.
Objects that are controlling a hardware resource cannot usually transfer the resource control through the queue.
More Answers (0)
Find more on Java Client Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!