做模型开发免不了要使用异步和并行计算,尤其在多核CPU的今天,更是如此,F#恰逢其时,天生就具备这种能力,先看一个例子. open System open System.Drawing open System.Windows.Forms open System.Threading let r = Random() let drawCurves (frm : Form) = let x, y = frm.ClientSize.Width, frm.ClientSize.Height let g =…