• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How does one get the run() method of a thread to go?

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm trying to make a short answer of this question but can't find any exact information on the question.

Could someone please share some information?
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A good place to start looking is here: http://docs.oracle.com/javase/tutorial/essential/concurrency/

To get a precise answer to "how does one get the run() method of a [T]hread to go?" you need to define what it means to "go". If it just means execute, then you can call it like any other method. If 'go' means execute concurrently to the current thread as a separate thread of execution, then the answer is to call the Thread object's start() method.
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kenny gill wrote:
I'm trying to make a short answer of this question but can't find any exact information on the question.

Could someone please share some information?



There is no short way out if you really want to learn something. If we simply tell you the answer, it would not benefit you. Neither would you be able to fully appreciate why things are the way they are. You should be willing to dig deep and do the hard work.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic