• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Single Thread Modelling

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic