Open Source & Linux Lab

It's better when it's simple

User Tools

Site Tools


courses:high_performance_computing:producer_consumer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
courses:high_performance_computing:producer_consumer [2018/10/07 12:48] kelcourses:high_performance_computing:producer_consumer [2018/10/07 15:58] kel
Line 47: Line 47:
 void* consumer_routine(void* arg) { void* consumer_routine(void* arg) {
   // notify about start   // notify about start
-  // allocate value for result 
   // for every update issued by producer, read the value and add to sum   // for every update issued by producer, read the value and add to sum
-  // return pointer to result+  // return pointer to result (aggregated result for all consumers)
 } }
  
courses/high_performance_computing/producer_consumer.txt · Last modified: 2024/03/04 02:19 by odoronin