This question needs to be doneusing Mutex Locks and Semaphores (linux based, C++)
QA Writo a program that creta es a child threrad using pthread create().The two threads share a global character buffer using pthread_mutex (). The created thread input a string from user whereas the main couns and the display the umber o characters in he string The program should terminate when user enter “end” as input string. Both the threads should use mutex to insure
OR
OR