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

[510 byte] By [DesarrolloScreenNamea] at [2007-10-2 9:58:15]
# 1
i'm pretty sure it's the only optionhow else can you possibly guarantee that by the time you're done scheduling that the resource will still be available?
SoulTech2012a at 2007-7-17 0:03:38 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

> 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.

kablaira at 2007-7-17 0:03:38 > top of Java-index,Other Topics,Patterns & OO Design...