Improved flopPthread.c