multithreaded runtime environment for the pi compiler