in reply to Run a subroutine in the background ?

Logically, you are going to do two things at one time, so you should see:
threads threads::shared
or
fork()