I have a long Java background and wondering if the iPhone has similar guidelines for working with multi-threaded GUI applications. for example only updating the GUI from the event thread?
What I'm planning is a Singleton data manager that is collecting data from various asynchronous data sources and a secondary thread that is updating the GUI based on the updated data. Does that sound like something that is manageable on the iPhone with cocoa-touch?
I know how to do this in Java and I'm wondering about the equivalants in objective-c. ie:
Thread safe collections. (Java ConcurrentHashMap)
ThreadPool with single thread. (Java Executors.newSingleThreadExecutor)
Singleton implementation - any doubled checked locking/memory guard issues?
Scheduled events (Java Executors.newSingleThreadScheduledExecutor)
What I'm planning is a Singleton data manager that is collecting data from various asynchronous data sources and a secondary thread that is updating the GUI based on the updated data. Does that sound like something that is manageable on the iPhone with cocoa-touch?
I know how to do this in Java and I'm wondering about the equivalants in objective-c. ie:
Thread safe collections. (Java ConcurrentHashMap)
ThreadPool with single thread. (Java Executors.newSingleThreadExecutor)
Singleton implementation - any doubled checked locking/memory guard issues?
Scheduled events (Java Executors.newSingleThreadScheduledExecutor)