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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:34:03+00:00 2026-06-04T11:34:03+00:00

Q: 1) In a multi-threading application is there a limit to how many threads

  • 0

Q:

1) In a multi-threading application is there a limit to how many threads an application may spawn.

2)If such a limit exists, does the JVM terminate the application and with what error code.

EDIT

3)If an application spawns in very rapid sucsession, would the JVM detect that as a “rough” application

Thanks in advance

  • 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-04T11:34:05+00:00Added an answer on June 4, 2026 at 11:34 am

    No limit specified by the JVM specification. The OS may (probably) limit it as usual per process etc though.
    Each thread will also allocate a stack etc so a lot of memory could be needed, so depending on the computer what limit is hit first..

    Please note: Too many threads are usually inefficient though. Your program could/should probably scale better in another way. Using Thread pools (executor service), asynchronous I/O, fork/join etc depending on your needs.

    See also:

    Is there any hard limit to a number of threads in Java?

    How many threads can a Java VM support?

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

Sidebar

Related Questions

I am using the console application i used multi threading in the same. I
I'm building an entire application out of immutable objects so that multi-threading and undo
We have developed map base application. We have implemented multi-threading for display data on
I have created an multi thread application on IIS (ASP.NET MVC), When the threading
I am writing unit tests for a multi-threading application, where I need to wait
I'm using net beans for Java development. I'm working on a multi threading application
I have a client server application with multi-threading. The server side is failing with
Are there any good sample UI applications which illustrate multi threading best practices in
I am developing a multi-threading application, which is deadlocking. I am using Visual C++
I'm modifying an application written in C# that makes heavy-use of multi-threading to play

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.