with vb2008 the bits are optimised to user multy-core processors however ms are thinking what we can manage our personal code to build special algorithms, also, we will development intuitively or with special functions to get full full the production of multy-core processors.

with parallel extentions for example we can execute a for loop into pararel consum all process core and their full power.

for example:

in single process:

dim result = new matrix(of double)(m1.rows, m2.columns)

   for i = 0 to m1.rows - 1

      for j = 0 to m2.columns - 1

         result(i, j) = 0

            for k = 0 to m1.columns - 1

               result(i, j) += m1(i, k) * m2(k, j)

            next

           next

      next

return result

in parallel process:

   dim result = new matrix(of double)(m1.rows, m2.columns)

   parallel.for(0, m1.rows, function(i) multiplyparallelinner(i, m1, m2, result))

   return result

---multiply parallel function

   for j = 0 to m2.columns - 1

         result(i, j) = 0

            for k = 0 to m1.columns - 1

               result(i, j) += m1(i, k) * m2(k, j)

            next

         next

return true

on my machine the i have arround 150% more speed into the process executed with parallel extentions.

for mor information you can see here.

download the ctp here.

(in many cases i think, what will happen if vfp go to into .net? really it's will very crazy, will very good .... :-), however now with vb2008 we will have all power of the vfp team+)

best regards,

franklin garzón

mvp visual foxpro

Leave a Reply

Your email address will not be published. Required fields are marked *