R
Rupesh
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
thanks
waiting threads are same priority.
thanks
Rupesh said:Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
thanks
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
thanks
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
Rupesh wrote On 09/25/07 17:37,:
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
What are they waiting for?
If they are waiting on condition variables, [...]
Is there any way to notify a particular thread to wake up? All the
waiting threads are same priority.
I suggest you read Java Concurrency In Practice <http://www.javaconcurrencyinpractice.com/>. It teaches you everything you
should know before attempting to create multi-threaded programs.
ALERT! The URL given does not lead to any explanation of Java
concurrency in practise. It leads to an advertisement trying to sell
something.
ALERT! The URL given does not lead to any explanation of Java
concurrency in practise. It leads to an advertisement trying to sell
something.
Roedy said:that "something" is a book with a list of authors including the
venerated Joshua Bloch and Doug Lea.
The registered owner of the site is PEIERLS, TIMOTHY
Prior Artisans, LLC
275 ELDERFIELDS RD
MANHASSET, NY 11030-1625
US
Tim Pierls is the primary author of the book.
The book is most likely is about as good as you could get, and the
site is owned by the author.
The site has additional information:
Table of Contents
View code examples (source jar)
Concurrency annotations: jar, javadoc, source
Sample chapter
Errata
Praise for Java Concurrency in Practice
About the authors
I see nothing wrong with quoting the site. There is nothing wrong
with getting paid for your efforts. My complaint is when people try
to sell me a defective or irrelevant product.
Here are links to various bookstores if you don't like that site.
http://www.amazon.co.uk/gp/product/...mp=1634&creative=6738&creativeASIN=0321349601
http://search.barnesandnoble.com/bo...sbn=9780321349606&lkid=J12871747&pubid=K49036
http://www.powells.com/partner/28995/biblio/9780321349606
http://www.amazon.com/gp/product/03...mp=1789&creative=9325&creativeASIN=0321349601
http://www.amazon.de/gp/product/032...mp=1638&creative=6742&creativeASIN=0321349601
http://www.amazon.fr/gp/product/032...mp=1624&creative=6746&creativeASIN=0321349601
http://www.jdoqocy.com/click-235804...ers.indigo.ca/books/item/books-9780321349606/
http://www.amazon.ca/gp/product/032...15121&creative=330641&creativeASIN=0321349601
Something truly valuable and worth far more than the price you'll pay for it.
It's a clear grab for money.
Actually, I have know vested interest in that book. I just thought itSomething truly valuable and worth far more than the price you'll pay for it.
[snip remainder of endorsement]
(This response applies equally to Roedy's.)
Regardless of all of that, it remains the case that the original post
is a bait-and-switch. It purports to link to information about Java;
instead it links to an advertisement. It's a clear grab for money.
Regardless of how relevant or well-targeted the ad might be in this
context, it is still an ad, and all of the following occurred:
Oh, I wasted one click! I'm so sorry. Deal with it.* The first response to the thread was an ad for a commercial product. My response was appropriate.
* The response did not disclose that this was the case; instead one
had to follow the link to discover that one is being asked for money
instead of merely receiving an answer.
I was not aware that the Java tutorial went into the kind of detail* The response conspicuously did not mention the Java Tutorial or any
of the other copious free material on the subject matter, which the OP
would be financially well-advised to consider first before resorting
to paying money.
This is the second time you've accused me of commercial advertising* There's also the niggling little matter that the ad is probably
utterly useless to anyone who isn't an American with a credit card
from one of the Big 3 anyway. That's about 1% of the world population.
If you're a German with poor credit but a $50 bill (well, fifty euro
or whatever) burning a hole in your pocket, too bad, your money isn't
green enough I expect.
Regardless of the OP's motives and intentions, the result is awfully
shabby.
And Usenet is not an appropriate place for commercial advertising
anyway.
Daniel said:This is the second time you've accused me of commercial advertising
when I don't make money from anything I do on usenet.
Yeah, it accused me of the same thing when I recommended IntelliJ as
superior to Eclipse and NetBeans. Don't let it worry you; the rest of us
know better.
Rupesh said:What's happening... let's come back to problem. The Problem is the
threads are not of same class. They are the threads from different
classes that need to access some shares resources. I have used block
synchronized but I am not getting things right. So what do you suggest
me to do in such condition. They I have to synchronize threads from
different classes.
Yeah, it accused me of the same thing when I recommended IntelliJ as
superior to Eclipse and NetBeans. Don't let it worry you; the rest of us
know better.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.