Threads in C# [Question]
- by blez
Thread1/2: do TotalThreads-- on their exit
int TotalThreads = 2;
void AsyncFunc() {
// run thread for Func()
}
void Func() {
// run Thread1
// run Thread2
while(TotalThreads > 0) { /* do nothing */ }
// some code
}
is that bad design?