PackageCompiler hangs while compiling nonincremental system image on Julia v1.11

This parallelism is controlled by JULIA_IMAGE_THREADS (Environment Variables · The Julia Language), which claims:

If left unspecified, the smaller of the value of JULIA_CPU_THREADS or half the number of logical CPU cores is used in its place.

So, unless you specify JULIA_CPU_THREADS, I don’t think the number of julia threads should influence this.