I’m trying to create an array of threads. In Linux, I did it this like:
pthread_t thr[MAXCONNECTIONS];
On Windows, I don’t find any replacement for this. Is there anyway to create an array or something that replaces this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve left out some stuff but you get the jist. You have an array of HANDLE’s instead of physical threads. You can then pass a HANDLE to various functions to do things on the thread.