courses:high_performance_computing:producer_consumer
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
courses:high_performance_computing:producer_consumer [2018/10/07 12:48] – kel | courses: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 |
} | } | ||
courses/high_performance_computing/producer_consumer.txt · Last modified: 2024/03/04 02:19 by odoronin