*
lsh
昨天 e8e24655f90134400f6a90c507f13eb91d3813de
src/main/java/com/zy/core/MainProcess.java
@@ -23,9 +23,9 @@
    // 所属线程
    private Thread thread;
    private Thread thread2;
    private Thread thread3;
    private Thread thread4;
    private Thread thread5;
//    private Thread thread3;
//    private Thread thread4;
//    private Thread thread5;
    /**
     * =====>>  开始工作
@@ -37,21 +37,21 @@
        thread2 = new Thread(this::crnAndDevOtherRun);
        thread2.start();
        thread5 = new Thread(this::demoRun5);
        thread5.start();
        thread3 = new Thread(this::demoRun);
        thread3.start();
        thread4 = new Thread(this::demoOpenRun);
        thread4.start();
//        thread5 = new Thread(this::demoRun5);
//        thread5.start();
//
//        thread3 = new Thread(this::demoRun);
//        thread3.start();
//
//        thread4 = new Thread(this::demoOpenRun);
//        thread4.start();
    }
    private void crnAndDevRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(500);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -82,7 +82,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(400);
                Thread.sleep(210);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -111,7 +111,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(210);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -136,7 +136,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(200);
                Thread.sleep(100);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -161,7 +161,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(50);
                // 系统演示模式运行状态变化
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2) {
@@ -213,9 +213,9 @@
    public void shutDown() {
        if (thread != null) thread.interrupt();
        if (thread2 != null) thread2.interrupt();
        if (thread3 != null) thread3.interrupt();
        if (thread4 != null) thread4.interrupt();
        if (thread5 != null) thread5.interrupt();
//        if (thread3 != null) thread3.interrupt();
//        if (thread4 != null) thread4.interrupt();
//        if (thread5 != null) thread5.interrupt();
    }
}