Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java threading  RSS feed

 
chandrashekhar belwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how start() mathed is called the run()mathed in java threading when we create a new thread by extends or runnable interface
can u give me its internal figure
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Welcome to JavaRanch!
start() can't be implemented in Java, so I can't show Java code for it. There has to be some native code, because it does something that can't be done by any other Java method. start() talks to the underlying threading apparatus -- the operating system, or a special library -- and launches a new thread of execution. run() is then invoked in this other thread.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!