• Post Reply Bookmark Topic Watch Topic
  • New Topic

Single Thread Modelling  RSS feed

 
Gopinath Reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

Any one can pls tell me what is Single Thread Modelling. And its Use in developing application.

regards
Gopinath
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some web servers have a "single thread model" option. That may be where you heard the term. I think it means one thread handles all incoming requests. If request 2 comes in while request 1 is working it waits until request 1 is done. If you have thousands of users they can back up and wait a very long time for responses. Other options are to start a new thread for every request or serve requests with a pool of threads.
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stan James:
Some web servers have a "single thread model" option. That may be where you heard the term. I think it means one thread handles all incoming requests. If request 2 comes in while request 1 is working it waits until request 1 is done. If you have thousands of users they can back up and wait a very long time for responses. Other options are to start a new thread for every request or serve requests with a pool of threads.


"single thread modeling" gets 1 hit in google, not a good score. SingleThreadModel is a servlet interface that does what is described in the quoted reply. Its intent is to remove race conditions caused by multithreading. It doesn't work and is deprecated in Servlet 2.4
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!