switch process and thread order