You know that WaitForMultipleObjects funtction from windows library in c is getting parameter as an array for objects. But in my homework, assistant wants to keep all the threads in a stack not in an array how can i use this function with a stack?
You know that WaitForMultipleObjects funtction from windows library in c is getting parameter as
Share
You can only call this function with an array. That is not something you have any control over. So you need to use a stack that is capable of exposing its contents as an array. Or an array that is capable of operating like a stack.
However, it is perfectly plausible that the use of a stack container for your threads is simply inappropriate. Why does your homework assistant want to use a stack?