implemented runtime.Gosched()