Create two threads: producer and consumer
Create a structure queue where you may have a buffer, head, tail,
semaphores and mutex, thread_cond_t as data members.
Dear, my client
I read your description.
I'm a C/C++ programer with rich experience for 8 years.
I'm interested in your job
To complete your job is my goal and pleasure.
Thanks.