Write a multithreaded C program (using C and pthreads) that performs an encoding for a list of characters using semaphor

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a multithreaded C program (using C and pthreads) that performs an encoding for a list of characters using semaphor

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply