Forums Register Login

Application Server implementing Multi Thread !!

+Pie Number of slices to send: Send
Dear Java Geeks

Does anybody know on how the Application Server like JBoss, Weblogic, Websphere implements MultiThreading ?
+Pie Number of slices to send: Send
What, exactly, do you mean? They implement multi-threading by using multiple threads (I know, that's not helpful, but just to illustrate that the question is not clear).
+Pie Number of slices to send: Send
In a J2EE world you should not be creating threads. The server will create threads and maintain pools on your be half though you can configure these pools.

Most (note most not all) app server code should look single threaded to the untrained eye and not worry about synchronisation (exceptions exist), the container will manage your use of threads / synchronisation that's not to say that code doesn't exist its just its part of the container unless you are doing something advanced.

If you do require a job to run in another thread you should be requesting this via a work manager ie not creating thread pools, threads by hand as it defeats your containers ability to share / maintain resources.

hope that helps
Yes, my master! Here is the tiny ad you asked for:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1196 times.
Similar Threads
Why JBoss?
sun application server versun sun glass fish j2ee server
what is the difference b/w WebServer and Application Server?
Difference b/w application server and webserver
How to know any application status in websphere
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:06:46.