
Use a shared queue of X items - One thread adds items at random times - The other thread pulls at random times - They need to synchronize when the queue is full (producer) or empty (consumer)!
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
1:58c5e61231be | 2018-11-29 | vicara | frunzia |
0:180517623995 | 2018-11-29 | vicara | Use a shared queue of X items; - One thread adds items at random times; - The other thread pulls at random times; - They need to synchronize when the; queue is full (producer) or empty; (consumer)! |