Hi
I was wondering whether it was easy in C to write a program to take advantage of two cpu cores.
For example, if I wanted to make a program that found out what every number from 0-100 dived by 3 was, I could have one core work out 0-50 and the next 51-100 (so they would finish around the same time).
Is there an easy way to do this? Being able to do this would be useful in programs where it is easy to split up a set of calculations where the two cores won't mess with the eachother's data.
Thanks!