Is number of message queue(s) a Windows App can have is equal to threads in that app that create windows?
Share
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.
Message queue is created only when thread creates a window. Before that a thread does not have any message queue. If creation of the queue will succeed or not depends on the amount of resources on the computer. The more RAM and free hard drive space you have, more treads and msg queues can be created. There is no any hardcoded limit on this.
In my experience starting more that a thousand threads most likely will create a problem even on a big box. But this still depends on the type of loaded drivers, number of network connections, etc.