47. Double buffer

Write a class that represents a buffer that could be written and read at the same time without the two operations colliding. A read operation must provide access to the old data while a write operation is in progress. Newly written data must be available for reading upon completion of the write operation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset