# L-11 MCS 572 Fri 20 Sep 2024 : hellothreads.jl """ At the command prompt run as julia -t 4 hellothreads.jl to run with four threads. """ using Base.Threads nt = nthreads() println("The number of threads : ", nt, ".") # start nt threads with the @threads macro @threads for i=1:nt println("Thread ", threadid(), " says hello.") end