On Oct 3, 2006, at 5:09 PM, Daniel Stenning wrote:

- If a machine has dual CPUs - either per chip or on a quad mac - do threads that I create inside an RB app always sit inside the same process and CPU ? If so, is there a way of splitting the workload in an app across CPUS ?

Threads are tied to processes, not to CPUs. The Mac OS kernel's scheduler will run a thread timeslice on whichever CPU happens to be available; a single thread is quite likely to bounce from one CPU to the next each time it yields.

The only way to *simultaneously* use more than one processor from a REALbasic app is to write your own thread class using platform- specific declare statements.

Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to