My program has different threads and one common logging thread will be running.
All my threads have to dump some logging data into a buffer in logging thread. The logging thread in-turn will write into log file once the buffer reaches some size.
How can i write into the common buffer without affecting the performance of the running threads.? I am thinking of some way without much overhead instead of using mutex or any other sync mechanisms.