Home  /  Questions  /  Question



50   50
Aug 02, 2010


Design Patterns for Parallel Logins

Can anyone please tell me or point me to some good examples where, what and how design patterns are best applied for blocking parallel logins?



100   96.6
Aug 03, 2010
I 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?

50   50
Aug 04, 2010
Hi Pankaj, thanks for your suggestion.  Surely this points me to a starting point.