-
Spawn 2 threads, one that continuously says
Hello
and the other that sayWorld
. -
Find out the number of physical and logical cores in your CPU using rust.
hint:
try usingnum_cpus
crate.
Spawn 2 threads, one that continuously says Hello
and the other that say World
.
Find out the number of physical and logical cores in your CPU using rust.
hint:
try using num_cpus
crate.