MATLAB PARALLEL COMPUTING TOOLBOX - S Uživatelská příručka Strana 493

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 656
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 492
labBarrier
11-149
labBarrier
Block execution until all workers reach this call
Syntax
labBarrier
Description
labBarrier blocks execution of a parallel algorithm until all workers have reached the
call to labBarrier. This is useful for coordinating access to shared resources such as file
I/O.
Examples
Synchronize Workers for Timing
When timing code execution on the workers, use labBarrier to ensure all workers are
synchronized and start their timed work together.
labBarrier;
tic
A = rand(1,1e7,'codistributed');
distTime = toc;
See Also
labBroadcast | labReceive | labSend | labSendReceive
Zobrazit stránku 492
1 2 ... 488 489 490 491 492 493 494 495 496 497 498 ... 655 656

Komentáře k této Příručce

Žádné komentáře