Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

help please

Thread view: 
teshmee@gmail.com - 23 Oct 2007 10:41 GMT
how to use thread feature of Java to model coorporation between
producers and consumers?
SadRed - 23 Oct 2007 11:21 GMT
On Oct 23, 6:41 pm, tesh...@gmail.com wrote:
> how to use thread feature of Java to model coorporation between
> producers and consumers?

http://www.oreilly.com/catalog/expjava/excerpt/
Thomas G. Marshall - 24 Oct 2007 01:07 GMT
SadRed said something like:
> On Oct 23, 6:41 pm, tesh...@gmail.com wrote:
>> how to use thread feature of Java to model coorporation between
>> producers and consumers?
>
> http://www.oreilly.com/catalog/expjava/excerpt/

How old is that article?  It refers to the usage of stop(), resume(), and
suspend(), as if they were safe and not deprecated.

Signature

Unix users who vehemently argue that the "ln" command has its
arguments reversed do not understand much about the design of
the utilities.  "ln arg1 arg2" sets the arguments in the same
order as "mv arg1 arg2".  Existing file argument to non-existing
argument.  And in fact, mv itself is implemented as a link
followed by an unlink.

Arne Vajhøj - 24 Oct 2007 01:30 GMT
> SadRed said something like:
>> On Oct 23, 6:41 pm, tesh...@gmail.com wrote:
[quoted text clipped - 4 lines]
> How old is that article?  It refers to the usage of stop(), resume(), and
> suspend(), as if they were safe and not deprecated.

The stuff is from first edition of the book.

Second edition came out in 1997 (says Amazon).

Not a new book !

:-)

The methods were deprecated in Java 1.2.2. I do not have
the docs longer back, so I can not check 1.1.8.

Arne
Roger Lindsjö - 24 Oct 2007 10:33 GMT
>> How old is that article?  It refers to the usage of stop(), resume(),
>> and suspend(), as if they were safe and not deprecated.

> The methods were deprecated in Java 1.2.2. I do not have
> the docs longer back, so I can not check 1.1.8.

They are not deprecated in 1.1.7. Hmm, where did my 1.1.8 doc go?

//Roger Lindsjö
Arne Vajhøj - 24 Oct 2007 13:12 GMT
>>> How old is that article?  It refers to the usage of stop(), resume(),
>>> and suspend(), as if they were safe and not deprecated.
[quoted text clipped - 3 lines]
>
> They are not deprecated in 1.1.7. Hmm, where did my 1.1.8 doc go?

I don't think they deprecate in third digit releases, so
1.1.8->1.2.0 is a good guess for time.

And that was not yesterday.

Arne
Thomas G. Marshall - 25 Oct 2007 00:04 GMT
Roger Lindsjö said something like:
>>> How old is that article?  It refers to the usage of stop(),
>>> resume(), and suspend(), as if they were safe and not deprecated.
[quoted text clipped - 5 lines]
>
> //Roger Lindsjö

1.1.7 was one of the biggest of the not-so-big releases, as I recall.  Was
around a long time.

I would have sworn that it was 1.1.7, or 1.1.5 where the deprecation first
showed up...so much for my memory.
RedGrittyBrick - 23 Oct 2007 11:25 GMT
> how to use thread feature of Java to model coorporation between
> producers and consumers?

http://www.catb.org/~esr/faqs/smart-questions.html#homework

There are many tools to obtain help with Java. One of these is Google
(or your favourite search engine). In general I find it best to consult
Google before posting to comp.lang.java.programmer.

http://www.google.co.uk/search?q=java+producers+consumers
Daniel Pitts - 23 Oct 2007 17:37 GMT
> how to use thread feature of Java to model coorporation between
> producers and consumers?

I learned the most about writing multi-threaded applications by reading
the book /Java Concurrency In Practice/.  There are also plenty of
tutorials online if you search for them.

<http://virtualinfinity.net/wordpress/technical-book-recommendations/>

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Lew - 23 Oct 2007 22:44 GMT
>> how to use thread feature of Java to model coorporation between
>> producers and consumers?
[quoted text clipped - 4 lines]
>
> <http://virtualinfinity.net/wordpress/technical-book-recommendations/>

I endorse that.  I bought the book and I'm working through it; it's
immeasurably valuable.

Signature

Lew

Roedy Green - 23 Oct 2007 20:45 GMT
>how to use thread feature of Java to model coorporation between
>producers and consumers?

If it is for a production project, don't.  Use the thread library. See
http://mindprod.com/jgloss/queue.html

If you need to do this for a class project, see
http://mindprod.com/jgloss/thread.html
Then get a copy of Doug Lea's book.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 04 Nov 2007 23:46 GMT
>how to use thread feature of Java to model coorporation between
>producers and consumers?

see http://mindprod.com/jgloss/queue.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.