Write a multithreaded C program (using C and pthreads) that performs an encoding for a list of characters using semaphor
Posted: Sun Jul 03, 2022 11:22 am
Write a multithreaded C program (using C and pthreads) thatperforms an encoding for a listof characters using semaphores NOT pipes. Your program will read aseries of characters fromstandard input (scanf()) and then will create three separate workerthreads. Each thread will performa simple change to the character in turn to produce the encoding.The first thread will convert thecharacter into lower case. The second thread will shift thecharacter 5 places higher. Lastly, the thirdthread will make sure the character did not overflow the lower casecharacters.