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)!

Download repository: zip gz

Files at revision 1:58c5e61231be

Name Size Actions
main.cpp 1978 Revisions Annotate
mbed-os.lib 77 Revisions Annotate