However, modern computers have “multicore” processors and can be equivalent to running multiple computers at a time. In the old days this was how parallel code was run and is still run on larger servers. If however, we have k < n computers we can run our models on, the total running time will n*s/k. If we have a single computer at our disposal and have to run n models, each taking s seconds, the total running time will be n*s. Parallel processing (in the extreme) means that all the f# processes start simultaneously and run to completion on their own. Once f1 completes, f2 begins, and the process repeats. ![]() Serial processing means that f1 runs first, and until f1 completes, nothing else can run. Let’s be a little more formal.Ĭonsider that we have a series of functions to run, f1, f2, etc. ![]() We’ve vaguely discussed this idea in passing, specifically in that *apply functions are faster than for loops (usually).
0 Comments
Leave a Reply. |