Apple docs says:
... you must create a context in main (for a sequential queue) or start (for a parallel queue).
But I really don't understand what the difference is. Why can't I create context in mainfor a parallel queue? I tried this and it works exactly the same as if I did it in start.
There is another thing that bothers me. From the docs for the start method :
... If you implement simultaneous work, you must override this method and use it to initiate your work.
So why can't I initialize everything in main(or maybe shouldn't initialize)?
Ivan
source
share