fixed get number of abailable procs
fixed doPart1 when numgranted=0
fixed executor issue: after executor shutsdown, cannot add more to him