• Post Reply Bookmark Topic Watch Topic
  • New Topic

Application Server implementing Multi Thread !!

 
Baalamurugan Raman
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Java Geeks

Does anybody know on how the Application Server like JBoss, Weblogic, Websphere implements MultiThreading ?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!