Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Micheal, can you elaborate a bit more on the Semaphore example? This is the first I've read/heard of them. Commented Jan 14, 2009 at 21:30
  • 1
    Jason: I definitely recommend the second approach (blocking queue/producer-consumer)--it's much easier IMO. For more on Semaphores, though, read this: msdn.microsoft.com/en-us/library/… Commented Jan 14, 2009 at 21:40
  • Shouldn't it be Semaphore(3,3), WaitOne decrements and Release increments? Commented Sep 7, 2009 at 10:56
  • @Bjarke Ebert: thanks for the correction: I've updated the answer Commented Sep 7, 2009 at 13:14