Is there a limit on the number of mutex objects that can be created in a Windows process?
Posted
by young-phillip
on Stack Overflow
See other posts from Stack Overflow
or by young-phillip
Published on 2010-05-02T05:08:39Z
Indexed on
2010/05/02
5:17 UTC
Read the original article
Hit count: 302
multithreading
|c#
I'm writing a c# application that can create a series of request messages. Each message could have a response, that needs to be waited on by a consumer.
Where the number of outstanding request messages is constrained, I have used the windows EVENT to solve this problem. However, I know there is a limit on how many EVENT objects can be created in a single process, and in this instance, its possible I might exceed that limit.
Does anyone know if there is a similar limit on creation of mutex objects or semaphores?
I know this can be solved by some sort of pool of shared resources, that are grabbed by consumers when they need to wait, but it would be more convenient if each request message could have its own sync object.
© Stack Overflow or respective owner