• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread Concept

 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Guys,

I am little bit confused with the thread concept. What does the thread mean in Java. Can any one help me out to understand the Single thread and Multi threading Concepts. If Possible point me out to Tutorial.

Thanks
Ram
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Concepts? A single threaded program executes one stream of instructions, one at a time. A multithreaded program seems to (or in the case of a multiprocessor machine, actually does) execute multiple streams of instructions at the same time. That's about it.

There are special APIs to let threads communicate with one another, and for threads to coordinate their activities so that data they share doesn't get corrupted. But there are just details. See here to start learning them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic