• 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

Threading issue in serlets - Urgent

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have a typical scenario.
I have a screen for logingout users for an application.The UI for that has 10 user name and passwords field arranged in rows.
Iam using MVC architecture.
If a user logs out after entereing password and clicks logout button. i have to call my controller servlet and which in turn calls the respective class for loging him out.
My problem is, the screen has to such name and pwd fields.
If these 10 users logs out with a gap of 3 sec each in the same UI, do i need to handle using thread. If such is the case how should i do that.
All your suggestions are greatly appreciated. Plz reply with code blocks if you can
Thanx in advance
K.BAbu
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Each request gets its own Thread - the only thing you have to worry about is synchronizing access to any object that might have to deal with multiple threads from the different requests.
Bill
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your application is little or is designed for just a few users, you could implement the SingleThreadModel interface to solve your syncr issues...
 
reply
    Bookmark Topic Watch Topic
  • New Topic