Re: Thread usage : Main thread interrupting secondary thread
Re: Thread usage : Main thread interrupting secondary thread
- Subject: Re: Thread usage : Main thread interrupting secondary thread
- From: Miles <email@hidden>
- Date: Thu, 5 Mar 2009 23:10:04 -0800
Thanks for the response, Kyle-
I'm trying to wrap my head around threading and this is my first experiment
with it. I've been doing lots of reading on it but it'll take awhile to sink
in.
I'm trying to use threads because I sometimes animate lots of objects every
0.02 seconds and it bogs things down.
-M
On Thu, Mar 5, 2009 at 11:00 PM, Kyle Sluder <email@hidden> wrote:
> You bumped a 10-hour old message. You might want to have a bit of
> patience.
>
> Have you considered that the threads are vying for a lock? Why are
> you using threads anyway? Core Animation runs its own threads for
> you, and you're working with the runloop, which provides some measure
> of asynchronicity without resorting to multithreading.
>
> Perhaps you might consider learning more about threading before
> attempting to use it. It is a very, *very* difficult concurrency
> technique.
>
> --Kyle Sluder
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden