4 ms·
Ah, but if you're going to talk about multi-threaded applications, we're going to have to start talking about things like thread-safe reference counts...
by fpgeek 13y ago
Ah, but if you're going to talk about multi-threaded applications, we're going to have to start talking about things like thread-safe reference counts...
- rsynnott 13y agoYou certainly have to be careful passing data between threads in ObjC (though, of course, you do in Java, too); the real problem with managed memory in multi-threaded highly latency sensitive UI applications, though, is that a thread other than the UI thread can happily trigger a stop the world collection through allocation, and it's very difficult for the UI thread to say "I'm doing something important for now; please don't allocate for a bit" (it's possible, but it's a nightmare).
- Dylan16807 13y agoA nightmare? Is it hard/impossible to wrap the allocation function with a boolean check and a spin in ObjC?