MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 497

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 496
labProbe
11-153
labProbe
Test to see if messages are ready to be received from other worker
Syntax
isDataAvail = labProbe
isDataAvail = labProbe(srcWkrIdx)
isDataAvail = labProbe('any',tag)
isDataAvail = labProbe(srcWkrIdx,tag)
[isDataAvail,srcWkrIdx,tag] = labProbe
Arguments
srcWkrIdx labindex of a particular worker from which to test for a
message.
tag Tag defined by the sending worker’s labSend function to
identify particular data.
'any' String to indicate that all workers should be tested for a
message.
isDataAvail Logical indicating if a message is ready to be received.
Description
isDataAvail = labProbe returns a logical value indicating whether any data is
available for this worker to receive with the labReceive function.
isDataAvail = labProbe(srcWkrIdx) tests for a message only from the specified
worker.
isDataAvail = labProbe('any',tag) tests only for a message with the specified
tag, from any worker.
isDataAvail = labProbe(srcWkrIdx,tag) tests for a message from the specified
worker and tag.
Vedere la pagina 496
1 2 ... 492 493 494 495 496 497 498 499 500 501 502 ... 655 656

Commenti su questo manuale

Nessun commento