synchronized (ProcessTookit.class) {
if (processManager == null) {
if (StringUtil.isBlank(Global.os) || Global.os.toUpperCase().indexOf(Constants.SYSTEM_WINDOWS) != -1) {
processManager = new ProcessManagerWindows();
} else if(Global.os.toUpperCase().indexOf(Constants.SYSTEM_LINUX) != -1){
processManager = new ProcessManagerLinux();
} else{
throw new Exception("��ȡ��������ϵͳ���ͣ����������ļ����ֶ�����OS������");
}
}
return processManager;