How to send selectors or blocks to an NSRunLoop to perform?

You have all the necessary pieces together in your question. You start your thread and have it run it’s runloop. If you need the thread to do something you can use performSelector:onThread: on the main thread to do it.

Consider using NSConditionLock. It is designed for tasks like this. Imagine that you have a queue with data.

First thread adds data to queue, second thread waits for data and processes it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions