944,087 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1493
  • Java RSS
Dec 9th, 2006
0

HELP for threads

Expand Post »
i am new at using threads
can any one send me any program for using multithreads?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
s_khardenavis is offline Offline
3 posts
since Dec 2006
Dec 9th, 2006
0

Re: HELP for threads

Get yourself a good book, and start reading.
Here's an excellent one (in fact one of the very few really good books about it): http://www.bookpool.com/sm/0321349601
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 9th, 2006
0

Re: HELP for threads

I have Deitel &Deitel book JAVA How to Program 6th edition happy with it. Also cover threads and I got more out of it then from my teach at university(he just love to complain about java)
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Dec 9th, 2006
0

Re: HELP for threads

The things taught about multithreading in non-dedicated books (and some dedicated books) are either overly simplified (often to the point of being dangerous when applied to real scenarios) or dead wrong (because the authors themselves didn't understand the topic).

As a result a lot of multithreaded code will work, usually, but only on a single CPU machine where there will never be multiple threads executing in parallel.
When run on a multicore or multiCPU machine they far more quickly run into trouble.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 9th, 2006
0

Re: HELP for threads

interesting I never thought of it. Yes we learn that mulithreading is design to speed up work especialy on multicore machines, but us non of has had chance to run pc with more then one cpu we don't give consideration to it. Will write to Santa get me new pc then...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Dec 11th, 2006
0

Re: HELP for threads

Check the library, I just got a book from there and so far its pretty good.

"Java Threads, 3rd edition" - O'Reilly
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004
Dec 12th, 2006
0

Re: HELP for threads

It's overall pretty good (and I do have it), but I've heard that there are problems with parts of it.
You should IMO never rely on a single source of information anyway (easier said than done I know, especially if you're on a tight budget).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 12th, 2006
0

Re: HELP for threads

I happen to have a dual cpu athlon system, if what you say is true then I'll have to check that book out.

While on the subject of Threading, here's an article on hyper threading java for those interested. I saw it on javaworld a few weeks ago.

http://www.javaworld.com/javaworld/j...21-thread.html
Last edited by Phaelax; Dec 12th, 2006 at 2:51 am.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Can I run an ASP file from a Java Applet Button?
Next Thread in Java Forum Timeline: Help with replace method.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC