simple script for binding threads on linux ... needs more thought to generalize