H
Homa
Hi,
I'm thinking what will happen if two users access a page at the same
time. If there are any local variable in the page, will this cause
concurrency problem?
Simarily, if this page need to call some functions, say
logic.doSomthing(), and the class logic is a singleton (for
simplicity), will there be problems?
Right now I'm using lock () {} to protect the class logic. Is that a
waste of time?
Please shed some light in this.
Best Regards,
Homa Wong
I'm thinking what will happen if two users access a page at the same
time. If there are any local variable in the page, will this cause
concurrency problem?
Simarily, if this page need to call some functions, say
logic.doSomthing(), and the class logic is a singleton (for
simplicity), will there be problems?
Right now I'm using lock () {} to protect the class logic. Is that a
waste of time?
Please shed some light in this.
Best Regards,
Homa Wong