• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sleeping Threads-Performance Bottlenecks.

 
Bhasker Reddy
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running a multithreading server that does some data processing. I am pulling a set of data batches from the databases. Creating a thread for each batch, running certain processes on them and then putting them to sleep(for certain time). Picking the next batche. I have set the parameter for no. of processes at 100. So I except it to run 100 processes at any time. When I start my server, it start 100 processes in half an hour,
then it continues like that for 2 hours, then no. of processes that needs to be run slowly decreases from 90.to 80 to 70 to 50,or 30. At the end i can only see around 30 processes that are running. I am new to threads .. Do you guys have any idea. If i am not clear, please let me know. I can explain my problem again
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have a complete understanding of when you expect the processes to be created, and when you expect them to be destroyed.
I do not fully understand what you think is not happening as it should.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!