Thread execution prototype