Newsletter sign-up
View all newsletters

Sign up for our technology specific newsletters.

Enterprise Java
Email Address:
JavaWorld Daily Brew

About Java semaphores

Back to:
www.javaworld.com/javaworld/javaqa/1999-11/02-qa-semaphore.html
.

In this example I see that Random Walk uses its' own newly created semaphores. I just want to say that there is such a build-in thing as java.util.concurrent.Semaphore and it really works (and really more efficiently that Random Walk one).
Just google for it and you'll find it more useful and more comfortable to use than to write your own semaphore from scratch.
Best regards to Random Walk.
P.S.
Excuse me but I really do not believe that Random Walk guys speak at most respected forums in the world. And if they do, those forums are really not related to concurrent programming.

Your rating: None Average: 2 (2 votes)

Yes. Sure, but JDK1.5 was not vailable at the time this article

Yes. Sure, but JDK1.5 was not vailable at the time this article has been written.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br /> <br> <strike>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
Just checking to see if you're an actual person rather than a spammer. Sorry for the inconvenience.