Posted by Giovanni on 04/25/07 21:44
Hi people!
I was writing a function in which I execute a query to READ some
value, and another one to UPDATE the previous query related data.
i.e.
query-> select * from ..... to retrieve myvalue
read myvalue
change myvalue
query-> update myvalue
Suddenly I had a doubt...
Can 2 or more browsers call the same function at "same time" and start
the UPDATE query with some still uncomputed data? or is the function
synchronized?
In positive case, should I use some mechanism as Semaphore?
tnx in advance, Giovanni
[Back to original message]
|