On Thu, 28 Aug 2008, davy zhang wrote:
> I know there are bunch of defects of thread programing and not every > one like to use it > > but I am still wondering the real efficiency of these two model > > if we use multi-core cpu, which one is faster, or it just depends on > the compiler's optimization~ It's a different programming model. I don't think there is an inherent difference in efficiency between the two models, except maybe the overhead of spawning a new thread. Even that can be remedied by using a thread pool. Michael. _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
