4 ms·
> Cocoa is incredibly fragile about the main thread That basically applies to all UI framework. At least I'm not aware about one which provides good support fo
by Matthias247 8y ago
> Cocoa is incredibly fragile about the main thread
That basically applies to all UI framework. At least I'm not aware about one which provides good support for accessing it from another thread.
There is obviously a reason for it, which is that UI frameworks are incredibly stateful, and trying to manipulate lots of state from multiple threads at once rarely works out well.
- pjmlp 8y agoI think BeOS tried to and it did not went well with common threading issues poping up on BeOS apps. Not sure if Haiku has any improvements regarding it.
- waddlesplash 8y agoNot sure what you mean when you say "common threading issues"; the entire point of the Be design was to force all threads to use message-based communication instead of shared memory for virtually all uses, and mandatory locking otherwise. It's extremely effective.
- pjmlp 8y agoIt was quite common to see BeOS apps crashing due to not handling the threads communication properly. Having the whole OS being so multithreading heavy was a novelty for the large majority of developers and quite easy to make mistakes.