the SAM7 thread index