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 8301227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:51:53+00:00 2026-06-08T16:51:53+00:00

So I’m trying to find out a bit about Threads and everywhere its said

  • 0

So I’m trying to find out a bit about Threads and everywhere its said that every process has at least one thread. That would mean if I only have a main class it would be a thread, wouldn’t it?

But: I thought the class becomes a thread by extending Thread.
So how come every process has a Thread, when I do not extend it in main?

Having more than one Thread only makes the process faster, if I use different resources, which can be used at the same time… like if I read in input from user one thread can wait for the user to type in and press enter, while another can work with the last input and so on.. right?

But if I want to calculate a bunch of equations.. it would NOT be faster with more than one thread, because they cannot calculate at the same time anyway (if I do not have several processors..)

Can someone clear things up for me? I tried to read a lot about this, but everyone just use the same words and that just doesn’t help me with my problem!

  • 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-08T16:51:55+00:00Added an answer on June 8, 2026 at 4:51 pm

    But: I thought the class becomes a thread by extending Thread.

    A class isn’t a thread. They’re separate concepts. Threads execute code; there’s no way code can execute without being executed by some thread or other.

    You create new threads using the Thread class (or using another class to do it for you) but a thread of execution is separate to the Thread class itself. A Thread object is just a representation of the thread of execution. The JVM itself starts up threads (including the “main” thread) in order to execute code.

    It sounds like you’re mostly right about the point of threads and when they can be useful… although these days it’s pretty rare to be running on a machine with only one processor.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I'm trying to select an H1 element which is the second-child in its group
I know there's a lot of other questions out there that deal with this
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.