HELP for threads

Reply

Join Date: Dec 2006
Posts: 3
Reputation: s_khardenavis is an unknown quantity at this point 
Solved Threads: 0
s_khardenavis s_khardenavis is offline Offline
Newbie Poster

HELP for threads

 
0
  #1
Dec 9th, 2006
i am new at using threads
can any one send me any program for using multithreads?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: HELP for threads

 
0
  #2
Dec 9th, 2006
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
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,185
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: HELP for threads

 
0
  #3
Dec 9th, 2006
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)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: HELP for threads

 
0
  #4
Dec 9th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,185
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: HELP for threads

 
0
  #5
Dec 9th, 2006
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...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: HELP for threads

 
0
  #6
Dec 11th, 2006
Check the library, I just got a book from there and so far its pretty good.

"Java Threads, 3rd edition" - O'Reilly
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: HELP for threads

 
0
  #7
Dec 12th, 2006
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: HELP for threads

 
0
  #8
Dec 12th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC