• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Threads and locks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads and locks


  • Subject: Re: Threads and locks
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 1 Apr 2004 14:50:58 -0800

On Apr 1, 2004, at 1:25 PM, Mark's Studio wrote:

Im having trouble get multi threading to work (EXC_BAD_ACCESS in random
places )

i only use one NSLock is that enough, or do i need to have a seperate
lock for every object?

what should i do to make this thread safe
[array1 setArray:array2]
both arrays are NSMutableArray

Wow... this is a big subject that you best understand yourself and not easy to convey in email. I would say find a book or online resources on multithreading and locking constructs.

-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Threads and locks (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Re: returning nil on initialization
  • Next by Date: OK to access instance variables through class methods?
  • Previous by thread: Threads and locks
  • Next by thread: Re: Threads and locks
  • Index(es):
    • Date
    • Thread