Good day,
It's probably going to be a series of stupid questions, but I'll ask them anyway:
- Does Processing make computations on a single core or does it divide tasks to multiple cores?
- If it does work only on a single core, do different processing instances use up different cores, or do they all use the first one and ignore the others?
- If it divides tasks to multiple cores, does anyone know if a commercial CPU/GPU farm for Processing scripts exists?
Have a lovely day,
Gediminas
Answers
Thanks,
That cleared up things!
You need to write Java code that intentionally uses more than one core. http://www.oracle.com/technetwork/articles/java/fork-join-422606.html
Yea, of course. Easiest way is use the hidden function method("") thread("") to invoke a function as a separate Thread. :-h
I sometimes use
thread("")
as well. Is that the same asmethod("")
? If I do this, is it automatically assigned to a different core?Oops! My mistake! It's thread("")! Function method("") is just a fancy way to call a function synchronously! :-&
But both are useful when we got a buncha functions w/ indexed-like names: