Idea for Threads
Manfred Nowak
svv1999 at hotmail.com
Sat May 12 11:21:36 PDT 2007
Craig Black wrote
> However, one very important objective of multithreading
> is to make programs faster by using todays multi-core processors.
There is at least one simple test, whether a language is prepared for
parallel execution: the computation of the parallel or: por.
por( arg1, ..., argn)
- evaluates all of its arguments simultaneously
- returns true as soon as one of its arguments turns out to be true
- stops all evaluations of its arguments, that are still running, as
soon as it returns.
-manfred
More information about the Digitalmars-d
mailing list