How to start operations in parrallel once the data has become avaliable

1 次查看(过去 30 天)
Hi all,
I am wandering if it is possible to start operations in parrallel once the data becomes avaliable. What we have to do is read a file which is locked on read so can't be read in parrallel, then the data from this is then used in calulations and write operations that are indepenedent of one another. The data in the file is in many blocks and we treat each block independently.
So my question is whether it is possible to have the read operation happen constantantly and then when the data has been read for a new block of the data we can start the data proccessing in parrallel. This would be easy if it was possible to create threads however as far as I am aware matlab does not support threading.
Any help would be appreciated. Many Thanks.
  2 个评论
Matthew Hewitt
Matthew Hewitt 2018-5-16
I don't believe its possible as the information would be constantly streaming in/changing size and would there not be in a data type that would usable in a parfor or other standard parallel toolbox operations

请先登录,再进行评论。

采纳的回答

Joss Knight
Joss Knight 2018-5-17
Try parfeval in conjunction with DataQueue.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by