Implement start_thread subroutine.