What is the difference between DataQueue and PollableDataQueue
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jim Hokanson
il 6 Gen 2018
Commentato: Jim Hokanson
il 6 Gen 2018
What is the difference between parallel.pool.DataQueue and parallel.pool.PollableDataQueue. It seems the pollable queue is the same as the data queue but with the ability to directly extract the next queue item, rather than rely on a callback method. Are there other differences (functionally or with performance)? Is my understanding correct?
0 Commenti
Risposta accettata
Walter Roberson
il 6 Gen 2018
You can only afterEach on a non pollable queue. You can only check the queue size or poll a pollable queue. That said, I do not know why the two could not have been merged.
The documentation also says that:
"Unlike all other handle objects, PollableDataQueue instances do remain connected when they are sent to workers."
The practical implications of that do not come to mind.
Note by the way that the documentation on the two varieties of queue both say that the values are serialized and sent and deserialized, which answers points from your other question.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Asynchronous Parallel Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!