Created by: wopeizl
fix the PE issue when exec thread number set to 0, it m ay lead to no execute thread available for PE test=develop