i developed following code:
processSegment[start_, end_] :=
Module[{segmentVector, segmentNormal},
segmentVector = end - start;
segmentNormal = Reverse[segmentVector] {-1, 1} Sqrt[3]/6;
{Line[{start, start + segmentVector/3}],
Line[{start + segmentVector/3,
start + segmentVector/2 + segmentNormal}],
Line[{start + segmentVector/2 + segmentNormal,
start + 2 segmentVector/3}],
Line[{start + 2 segmentVector/3, end}]
}
]
kochkurve[n_Integer?NonNegative] :=
Show[Graphics[
Nest[ (#1 /.
Line[{start_, finish_}] :> processSegment[start, finish]) &,
{Line[{{0, 0}, {1, 0}}]},
n]],
AspectRatio -> Automatic, PlotRange -> All]
kochkurve[9]
The matter is, that this code switches the CPU cores very slow (due to the task manager) if ever. So usually one CPU works for about 5 secs the other one do nothing.
Even when i use the integrated Parallelize function there is no change in the workload. Is there any chance to upgrade the workload and if yes, how? And when not, why is that not possible?