Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:59:22+00:00 2026-06-16T01:59:22+00:00

A thread’s run method is invoked by JVM when Thread.start() is called by the

  • 0

A thread’s run method is invoked by JVM when Thread.start() is called by the programmer.

  1. What does the JVM do in background before calling Thread.run()?

  2. Why is Thread.run() not exposed to the user?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:59:24+00:00Added an answer on June 16, 2026 at 1:59 am

    What does the JVM do in background before calling Thread.run()?

    It does the JVM work to manage the thread object (allocate stack space, thread-locals, …) and the per-architecture native work of forking and scheduling a new thread/process/clone or whatever the architecture uses to implement threads.

    Why is Thread.run() not exposed to the user?

    I assume you are talking about “exposed” in terms of the stack frame. Just like the the static main method, there obviously are call frames above the user code that aren’t exposed to the user because they aren’t useful and would be confusing. I’d say the same thing about the Thread.run() method. It will show up in the call stack if you extend Thread and override run() but won’t if you are passing in a target Runnable.

    I have a lot of details about this in this answer:

    How does Java run() method work?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thread class has run method to implement the business logic that could be executed
Calling Thread.join blocks the current (main) thread. However not calling join results in all
Thread thread = new Thread(new Runnable() { @Override public void run() { try {
In thread WatiN in Visual Studio 2008 - second test method fails there is
Thread t = new Thread (WriteY); t.Start(); for (int i = 0; i <
Thread MeasureThread = new Thread(delegate() { TextBlock tb = new TextBlock(); }); MeasureThread.Start(); This
Since thread execution happens in a pool, and is not guaranteed to queue in
For thread-safety reasons it is argumented: Do not allow the this reference to escape
Thread runnableInst = new Runnable(){ public void run(){}}; Thread thread1 = new Thread(runnableInst); Thread
My thread is not working properly. It is executing all the code in RepeatingThread()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.