Java very limited on max number of threads?

后端 未结 6 1591
萌比男神i
萌比男神i 2021-02-08 07:53

We have a small text box with 512Mb of ram. We wanted to see how many threads we can create in Java in this box. To our surprise, we can\'t create many. Essentially the minimum

6条回答
  •  后悔当初
    2021-02-08 08:50

    It's not the programming language, it's on the operating system level.

    More reading about it, for Windows:

    • Does Windows have a limit of 2000 threads per process?
    • Pushing the Limits of Windows: Processes and Threads (by Mark Russinovich)

提交回复
热议问题