![]() ![]() ![]() The message : Unable to create new native thread means that the Java application has hit the limit of how many Threads it can launch. When there are more threads than there is room in memory we have built a foundation for a problem: Now, as with workers in physical world, threads within the JVM need some elbow room to carry out the work they are summoned to deal with. But when you have a dozen workers at your disposal they can simultaneously fulfill several of your commands. If you had only one worker, he or she could only carry out one task at the time. For example – even on machines with just one processor – while you drag content from one window to another, the movie played in the background does not stop just because you carry out several operations at once.Ī way to think about threads is to think of them as workers to whom you can submit tasks to carry out. What this means is that the programs written in Java can do several things (seemingly) at once. Java applications are multi-threaded by nature.
0 Comments
Leave a Reply. |