• Post Reply Bookmark Topic Watch Topic
  • New Topic

Threads in Java 5  RSS feed

 
Gustavo Armenta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found and used a new Thread Pool object in Java 5.

Its very easy and fast to use. Is there any other Thread killer feature in Java 5?

I ask this because with the new multi-core processors its going to be a MUST to code in multi-threading
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java itself is already multithreaded. Even if you does nothing with threads, the JVM (and the OS) will handle it for you

Threads and synchronization are generally useful to keep the transferred data secure and persistent. For example, when you're about to update or delete a database row, you'd better to put the logic in a synchronized method. Especially if it is a heavy loaded business application.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is beyond the scope of SCJP, so I am moving it to our Threads forum...
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browse the JavaDoc for java.util.concurrent.* packages. There are some other neat new goodies there. They don't do much you couldn't do yourself the hard way, but they are better than anything I'd do for sure.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!