How can I arrange to only use @threads if the number of iteration is higher than minimum?

It’s a bit old, but perhaps still useful: