[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Threads

On 20 Oct 1997, Manoj Srivastava wrote:

> Hi,
> >>"Jason" == Jason Gunthorpe <jgg@gpu.srv.ualberta.ca> writes:
> Jason> Was just thinking,
> Jason> How do you all feel about threads?
> 	They are an integral part of how I earn my living. Do you
>  think that Deity will benefit from being multi-threaded? I don't
>  think that the hassles of the synchronization primitives that would
>  need to get added offset the benefits -- actally, for such an event
>  (user interaction, mostly) driven product, I fail to see tangible
>  benefits.

Well, there are portions that are not event driven and it seems to be
simpler to use threads for those bits. Ie consider generating the cache
file, that is quite a lengthy operation and deserves a dialog, but I can't
do that without either spawning another program and setting up a pipe or
using a thread.

There are a few other instances where using a thread might clean things
up, esp in the dowloading section, it's hard to say till you arrive :|

With GUI's it is usefull to have the main rendering section in it's own
thread so computation doesn't cause the UI to be unresponsive. I'm not
sure if we are going to have that much that warrents such attention.

I've done a fair amount with threads before, but generally only in cases
where there is a single point of synconization, I'm not sure what a full
widget set would end up being like if it were thread-safe/threaded.


Reply to: