Shared resources
I don't know if this is the correct forum for my question.
My application has to assign an appointment with a doctor. But there are many users (patients) compeating for this resource. I thought of blocking this resource until I collect all the patient information, but I'm not quite sure that this is the best option.
Is there any paper or site where I can read something about allocating a resource and resolving conflicts in general? And in particular for a web application?
Thanks
> I don't know if this is the correct forum for my
> question.
>
> My application has to assign an appointment with a
> doctor. But there are many users (patients)
> compeating for this resource. I thought of blocking
> this resource until I collect all the patient
> information, but I'm not quite sure that this is the
> best option.
> Is there any paper or site where I can read something
> about allocating a resource and resolving conflicts
> in general? And in particular for a web application?
>
> Thanks
At some level I think you'll have to block, I don't see any way around it. The question is where and for how long in my mind. For example, rather than blocking the entire "doctor" resource you could have the work done by an "AppointmentManager" that is responsible for all the doctor's appointments. Also I don't know what "collect patient information" means. Perhaps this could be something done before you try to schedule the appointment to minimize the time a resource would be blocked.
Just some thoughts. I haven't had the pleasure of writing a web app yet and your terms are rather ambiguous and abstract so it's hard to judge.