I have two threads: Thread 1 sets a key-value-pair in a NSMutableDictionary and reads that value later and thread 2 does the same thing with another key-value-pair. The keys are different and each thread only reads the key-value-pair that it set. However, either thread can read while the other one writes.
So my question is whether I need to protect the NSMutableDictionary if two threads are accessing DIFFERENT entries of the same NSMutableDictionary at the same time? (Is the entire NSMutableDictionary "claimed" by a thread or are the operations on individual entries independent?)