in reply to Re: grand central dispatch like mechanism?
in thread grand central dispatch like mechanism?

thanks, superdoc. this is 95% of the functionality. the other 5% is intelligent queuing---with 2 processors, first run 2 processes, then run the next 2 processes...
  • Comment on Re^2: grand central dispatch like mechanism?

Replies are listed 'Best First'.
Re^3: grand central dispatch like mechanism?
by BrowserUk (Patriarch) on Feb 18, 2010 at 06:08 UTC
    this is 95% of the functionality. the other 5% is intelligent queuing-

    No. That code will be intelligently dispatched by the OS kernel scheduler. As coded, it will still only take 8 seconds to run even if you only have a single processor.

    It is really hard to explain how it does that if you do not understand Timeslicing & Preemptive Multitasking, but trust me, it works.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.