Upwind interview question

home assignment on threads, questions about memory allocation