void ThreadEntryPoint(ThreadStruct *threadData) {…

Question Answered step-by-step void ThreadEntryPoint(ThreadStruct *threadData) {… void ThreadEntryPoint(ThreadStruct *threadData){///////////////////////////////////////////////////////////////////////////////////// TODO: Add code to this function to make it run according to the run type.//   However do NOT duplicate the following code.///////////////////////////////////////////////////////////////////////////////////for(int i = 0; i < threadData->numberOfStringsToGenerate; i++, std::this_thread::sleep_for(std::chrono::milliseconds(10))){ for(int j = 0; j < threadData->sharedStringLength; j++) {  std::this_thread::sleep_for(std::chrono::milliseconds(1));  threadData->sharedString[j] = ‘A’ + threadData->id;  } printf(“Thread %d: %sn”, threadData->id, threadData->sharedString);} Computer Science Engineering & Technology C++ Programming GDD GDD291 Share QuestionEmailCopy link Comments (0)