Re: Yet another threading question...
Re: Yet another threading question...
- Subject: Re: Yet another threading question...
- From: Chuck Hill <email@hidden>
- Date: Thu, 26 Feb 2009 18:19:00 -0800
On Feb 26, 2009, at 1:01 PM, Stamenkovic Florijan wrote:
Hi all,
I thought of making an EOEditingContext subclass that encapsulates a
thread and it does all it's work on that single thread, regardless
of which thread a method call to it is made on. It would entail
overriding all the methods in the EOEditingContext to do something
like a producer / consumer setup. I think that if well made, it
would introduce minimal overhead, as any inactive thread would be
waiting, and would insulate the EOEditingContext from the
multithreading outside of it. I have not thought it through very
well (though I am pretty sure it can be made), so, can anyone think
of unexpected bad side-effects?
Also, this is happening on the client side, though I am not sure if
that makes much of a difference for this.
Not really sure what that is going to achieve. Thread X altering the
state of an EC or thread X getting thread Y to do it seems the same.
- still trying :) I was just about to ditch all the multithreading
in my client app, saw how much it'd slow it down and make it less
user friendly, and I just can't do it without another shot at it...
Aw, just make a web app! :-P
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden