You also have to define what is "at the same time". Would it be like a book
you borrow, it is 'picked' as long as the borrower does not give it back?
or would it mean something like "in the same interval of time of some clock
tic" (ie. it is ok for two users to take number 2 as long as they do it not
at the same clock tic). I assume it is possible to have a common
centralized 'registry' (database, like, easier to share between many than
memory (buffer) assigned to a 'standard' process), else I fail to see who
can access the relevant history. The solution also depends on what you want
to do? simply DETECT the contention? if so, the first case can be solve if
you keep the history of in-s and out-s for each item (or the whole history),
and in the second case, the same, but force a check-in (terminate all
pending 'choices' that have not checked-out yet) at the start of each of
your clock tic (which I assume is still large enough to allow your code to
execute many operations).
But overall, the problem is quite fuzzy.
Vanderghast, Access MVP
Post by rodcharhey all,
i want to create an asp.net web page that allows internet users to pick a
number from 1 to 10. how do i manage users picking the same number? (if 2
users somewhere happen to be selecting the same number and the same time). Is
this a concurrency issue?
thanks,
rodchar