The Artima Developer Community
Sponsored Link

Java Answers Forum
Understanding Thread

3 replies on 1 page. Most recent reply: Mar 10, 2006 2:15 PM by Arul Murugan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Madhan Kumar

Posts: 10
Nickname: madhan
Registered: Mar, 2002

Understanding Thread Posted: Mar 6, 2006 10:34 AM
Reply to this message Reply
Advertisement
Hi,

I am new to programming.I am really having a hard time getting, what is Thread.Can anyone please help me giving any valuable site to help me understand Thread.
Thanks.


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: Understanding Thread Posted: Mar 6, 2006 4:56 PM
Reply to this message Reply
Please send me an email at kishori_sharan@yahoo.com and I will email you some material on thread.

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Understanding Thread Posted: Mar 6, 2006 10:56 PM
Reply to this message Reply
I don't know a good site, but I can give you the basics.

If you don't use multi-Threading, Java like any other programming language only executes one command at a time, the complete program will be executed one command after the other.

If you create a thread, you could say that a new program is started. This Thread is not part of the execution cue of the main program.
Wehn you call threadInstance.start(), a new program handler will be created and the new program will be started (by executing the run method).

The point is that the main program does not wait for the run method to finish, but continues it's execution instantly.

Arul Murugan

Posts: 7
Nickname: appaney
Registered: Mar, 2006

Re: Understanding Thread Posted: Mar 10, 2006 2:15 PM
Reply to this message Reply
You can go through JAVA 2 - Complete reference - Patrick Naughton and Schildt, Publication-McGrawHill. Which has the very simple way of learning and using threads.

Flat View: This topic has 3 replies on 1 page
Topic: Any Java Source for 16 questions Previous Topic   Next Topic Topic: Need help with java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use