how many pthreads mutex are usually available in a typical system?
Is having many pthreads mutex degrades performance?
views:
31answers:
1
+1
A:
Several answers:
- You are asking the wrong question. If you need more than a 1000 or so mutexes, you are likely doing something wrong.
- As many as you need. Non-process-shared mutex does not usually consume any resources except RAM.
- Having many unused mutexes degrades performance in exactly the same way as having many integers; that is, not at all (assuming sufficient RAM).
Employed Russian
2010-09-18 06:08:43