The Artima Developer Community
Sponsored Link

Java Answers Forum
Number of threads to be created for optimal performance.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
nisar shariff

Posts: 1
Nickname: nisarahmed
Registered: May, 2008

Number of threads to be created for optimal performance. Posted: May 24, 2008 5:45 AM
Reply to this message Reply
Advertisement
Hi All,
I am into development work and I have a task to some bulk processing of records using JAVA. Our idea is to divide complete records depending on some criteria into independent groups. Start one thread for each group.

Each group has some number of elements and each element can have some children. We are not sure about the number of children. When dividing all the elements into groups we need to decide as of how many elements should be there in each group for optimal performance. If group is small and number of threads will be more which gives some 'Unable to start native thread' exception. And if number if threads are small, each thread may take more time.

What can be the way to identify the number of groups (or) number of threads to be created ?

Thanks in advance,
Nisar.

Topic: Places Bar Previous Topic   Next Topic Topic: Java Virtual Machine Launcher:Could not find main class:Program will exit

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use