• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Question 18 - Dan's thread mock exam

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
One of the correct answers for question 18 is
b) The Thread.start method is used to start a new thread running.
I am confused... I thought that the Thread.start method only makes the thread eligible to run. Isn't it the thread scheduler that invokes the Thread.run method and actually starts the thread?
Pls help.
Thanks.
Mansi
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thread.start method is used to make threads running but there is no guarantee that thread will immediately run once you call the start method of that thread.
 
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mansi Dave:
b) The Thread.start method is used to start a new thread running.
I am confused... I thought that the Thread.start method only makes the thread eligible to run.


Good point. I just uploaded a new version.


The Thread.start method causes a new thread to get ready to run at the discretion of the thread scheduler.

 
    Bookmark Topic Watch Topic
  • New Topic