tart implementation of A*v via pthread