Home arrow Java & J2EE arrow Page 4 - The Basics of Multiple Threads in Java

Taking a Break! - Java

In this day and age programmers must implement multi-threading solutions into their code. Every somewhat modern programming language that respects itself offers opportunities to work with threads. Today we’re going to learn how to do this in Java. This article requires at least a little knowledge of Java such as classes, objects, inheritance and interfaces. We’ll try to keep it simple.

TABLE OF CONTENTS:
  1. The Basics of Multiple Threads in Java
  2. The Basics and the Thread class
  3. The Runnable Interface
  4. Taking a Break!
By: Barzan "Tony" Antal
Rating: starstarstarstarstar / 49
February 25, 2009

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
 

We've come to the end of this part. By now you should know the basics of the two possible ways of creating and managing threads under Java. Actually, this is barely the tip of the iceberg. Try to research the topic of multi-threading in Java and you'll surely learn a lot. And don't forget to practice! Theory without application is null (pun intended). 

This article is going to be followed by a sequel covering a bit more advanced tasks with threads. We're going to learn how to work with groups of threads, what daemon threads are about, how we can change the states of threads, make them stand by, stop, then resume, and all that-and then, finally, we are going to learn thread synchronization. Synchronization along with locks is really crucial to grasp. 

Moreover, threads can also intercommunicate between each other. This isn't as scary of a process as it may sound at first. In the next article we're going to present one of the most common problems that is often used to exemplify this process: the producer-consumer example. You won't want to miss it! 

In closing, I'd like to invite you to join our experienced community of technology professionals who focus on all areas of IT&C, from software and hardware to consumer electronics, at Dev Hardware Forums. As well, be sure to check out the community of our sister site at Dev Shed Forums. We are friendly and we'll do our best to help you.



 
 
>>> More Java & J2EE Articles          >>> More By Barzan "Tony" Antal
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

JAVA & J2EE ARTICLES

- More Java Bugs Lead to More Attacks
- Oracle's Java One Brings News, Surprises
- Oracle Patches Java Runtime Environment
- Apple Syncs Java Update with Oracle
- Spring 3.1 Java Development Framework Compat...
- Jelastic Java PaaS Availability and Pricing ...
- NetBeans 7.1 Released, Supports JavaFX 2
- SolarWinds Releases Newest Version of Java M...
- Free Monitoring Tool for Java Apps on Heroku
- Heroku Adds JCloud Platform Support, Java 7 ...
- Java SE 8 Speculation in Full Swing
- Java SE 7 Now Available
- New JVM Language and Java Reporting Tool
- Java 7 Release Update and New Eclipse Toolkit
- The Best Java Netbeans IDE Plugins

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: