Views: 10.8K
Replies: 2
Archived
|
Design Patterns for Parallel LoginsCan anyone please tell me or point me to some good examples where, what and how design patterns are best applied for blocking parallel logins?
Ernesto Camacho, Aug 02, 2010
|
|
Reply 1Hi Pankaj, thanks for your suggestion. Surely this points me to a starting point.
Ernesto Camacho, Aug 04, 2010
|
|
Reply 2I thinnk you can try creating a ThreadSafe Singleton Login class. Singleton class will ensure that there is only one Login object created & Threadsafe(http://www.albahari.com/threading/part2.aspx#_Synchronization_Essentials) would make sure it's used by one thread at a time to solve parallel access issue. Does it solve your issue?
Can anyone else comment on this? Pankaj Mhatre, Aug 03, 2010
|