Hello,
I would be greatfull for help regarding my question. What is the rough "cost" of using threads in java? Are the any rule of thumbs/empirical values, how much memory the creation of one thread costs. (This is my main question). Furthermore is there a rough estimate how many "cpu cycles" the creation of a thread costs?
The motivation for this question is, in a servlet of a webapplication I want to parallelize the content creation as parts of the content are file based, db based as well as webservices based. But this would mean, that for every "http-request-thread" (of my serlvet container) I will have 2-4 further threads. (I will be using the ExecutorService in Java 6)...
What are your experiences in using "hunderts up to thousands" of java threads on a web-server?
Thank you very much! markus