"Multi-threading" w/ NSTimers in an iPhone app

Posted by MrDatabase on Stack Overflow See other posts from Stack Overflow or by MrDatabase
Published on 2010-05-09T22:25:45Z Indexed on 2010/05/09 22:28 UTC
Read the original article Hit count: 169

Filed under:
|
|

Say I have two NSTimers in my iPhone app: timer1 and timer2. timer1 calls function1 30 times per second and timer2 calls function2 30 times per second. Assume these two functions are reading and updating the same integer variables. Are there any "multi-threading" issues here? If not how does iPhone OS handle the execution of the two functions (in general)?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about multithreading