Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Confused with Threads..Help Needed

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi...dear one's.
i had the plan of writing SCJP.
Now..concentrating on threads.
Little bit confusing with the Behind-the-Scene concept of all the methods defined by a thread.

Pls..Direct me in a right direction.

Thanks in advance.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post a couple of points you've read about threads, that you didn't understand, and we can try to shed light on those points? Or, make your best attempt at "explaining it back" in your own words, and we'll go about trying to clean up that understanding.

Without giving some particulars, we'd have to document everything about threads to be sure we've helped you ;-)

Maybe, when you say "behind the scenes methods", you mean methods that aren't part of the public API for the class Thread? Stuff that you know is there, but don't know how to get a good understanding of it? Then maybe you can download the Source for Sun's JDK, and look at the java/lang/Thread.java class, and post bits of the method comments that don't make sense? Or, if you'r talking about the publicly accessible methods in Thread or related classes, mention specific ones?

What reference are you reading about Threads? I thought the info in the K&B book was good, but I had a previous understanding of Threads, so I can't say how it would have been if I didn't... There is also a section of the Java Tutorial by Sun dedicated to Threads.

Anyway, let us know how we can help.
-- Jon
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying about Thread.

I think Thrread is the most difficult in SCJP test.

This section make me worry. About K&B book they do not explain in the deep or more detail about Thread method ie. yield, sleep, wait, notify.

For more understand I want the code that demo yield, sleep, wait, notify run. after, I test Mock Exam I think I should learn more about Thread method.

Some question ask about how to use them.I am sure, the real code will be the best explanation to understand how Thread work.

Help me please if you have the sample code about Thread method.

Thank you.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried the Thread topics in the Java Tutorial?

http://java.sun.com/docs/books/tutorial/essential/threads/index.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic