Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question is for the two TODOs on the screen shot, this is multithreading in C++ using visual studio 2019 fillCount; -inl Car::gelTryCourl(void) return this->tryCount;

This question is for the two TODOs on the screen shot, this is multithreading in C++ using visual studio 2019

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

fillCount; -inl Car::gelTryCourl(void) return this->tryCount; 33 Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi fillup(); ir(result == 1) this->fillcouril++; return 1; void Car::startcar(void testacar(Car* car)) // TODO: Start the thread that will be used for the car //(these will he joinable threads) - void Car::waitForcartostop(void) // TODO: stop and clean up the car threads 67 100% - 90 AS Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi countMutex = m; ++ Sestin.eps void Car::setCountCondition(std::condition_variable* cv) this->count Condition - cv; - void Car::setGunMutex(std::mutex* m) this->gunMutex - m; -void Car::setGun Condition(std::condition_variable* cv) this->guncondition = cv; void Car::setNumberStanding InLine(int* num) this->number Waiting InLine - num; 99 -void car::incNumber waiting Inline) Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi numberWaiting InLine))++; Header Fles 102 103 Sources 104 105 106 -void Cars:decNumberWaiting InLine() 1 (*(this->numberWaitingInline))--; to Station.eps 107 void Cart: setTestover(bool* b) this->LesLover - b; 108 109 118 111 112 113 114 115 116 -Station* Car::getStation Touse(void) return this->station Touse; - std:: mutex* Car::getCountMutex(void) 118 119 120 121 return this->countMutex; 122 123 124 std::condition variable* Car::getCount Condition(void) relurn this->count Condition; 125 126 127 129 129 130 std:: mutex* Car::getGunMutex(void) Show output from: General Er List Output ItemSaved Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi gunMutex; Header Fles Sources 133 134 -std::condition_variable* Car::getGunCondition(void) 135 return this->puncondition; to Station.eps 137 138 139 148 bool* Car::getTestover(void) relurn this->Les Lover; 142 143 } 100% 0 45 + + Show output from General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi fillCount; -inl Car::gelTryCourl(void) return this->tryCount; 33 Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi fillup(); ir(result == 1) this->fillcouril++; return 1; void Car::startcar(void testacar(Car* car)) // TODO: Start the thread that will be used for the car //(these will he joinable threads) - void Car::waitForcartostop(void) // TODO: stop and clean up the car threads 67 100% - 90 AS Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi countMutex = m; ++ Sestin.eps void Car::setCountCondition(std::condition_variable* cv) this->count Condition - cv; - void Car::setGunMutex(std::mutex* m) this->gunMutex - m; -void Car::setGun Condition(std::condition_variable* cv) this->guncondition = cv; void Car::setNumberStanding InLine(int* num) this->number Waiting InLine - num; 99 -void car::incNumber waiting Inline) Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi numberWaiting InLine))++; Header Fles 102 103 Sources 104 105 106 -void Cars:decNumberWaiting InLine() 1 (*(this->numberWaitingInline))--; to Station.eps 107 void Cart: setTestover(bool* b) this->LesLover - b; 108 109 118 111 112 113 114 115 116 -Station* Car::getStation Touse(void) return this->station Touse; - std:: mutex* Car::getCountMutex(void) 118 119 120 121 return this->countMutex; 122 123 124 std::condition variable* Car::getCount Condition(void) relurn this->count Condition; 125 126 127 129 129 130 std:: mutex* Car::getGunMutex(void) Show output from: General Er List Output ItemSaved Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi gunMutex; Header Fles Sources 133 134 -std::condition_variable* Car::getGunCondition(void) 135 return this->puncondition; to Station.eps 137 138 139 148 bool* Car::getTestover(void) relurn this->Les Lover; 142 143 } 100% 0 45 + + Show output from General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions