suspending notifying threads there work do


i have churned threads (c# concentration controlling iis) controlling need promulgate same mq backend. minimize network traffic, i need wholly send backend ask there work done. there thread guard there work done, needs report threads should also start processing. tide fortitude involves guard thread sourroundings tellurian non-static carrying threads loop check that, ie guard thread:



checkifworkavailable() {
while(true) {
(queue.empty != true) {
worktobedone = true;
}
}//end while loop
}


and following workman threads:



dowork() {
while(true) {
(worktobedone == true) {
//do work...
}
else {
thread.sleep(x seconds)
}
}//end while loop
}


can guard thread report workman threads there work instead carrying only loop sleep? workman threads also set opposing indicating operative decrement work finished worktobedone fall set false.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?