MapHandler.add_map_element(signal_memory, tmp, SignalHandler.SIGNAL);
synchronized (signal_memory) {   MapHandler.add_map_element(signal_memory, SignalHandler.SIGNAL, tmp); }
    public static void main(java.lang.String[] args) {        try {            if (args != null) {                if ((args.length == 2) && (args[0] != null) && (args[1] != null)) {                    // Arguments.                    java.lang.Object dynamics = args[0];                    java.lang.Object statics = args[1];                    // Log handler.                    LogHandler.log_level = 3;                                        // XML parser.                    CategoryHandler.xml_parser = new org.apache.xerces.parsers.DOMParser();                    CategoryHandler.initialize_xml_parser(CategoryHandler.xml_parser);                                        // Signal memory (signal queue).                    java.lang.Object signal_memory = new Map();                    MapHandler.initialize_map(signal_memory);                    // Event handler.                    JavaEventHandler.signal_memory = signal_memory;                    java.lang.Object event_handler = new JavaEventHandler();                    JavaEventHandler.set_event_handler(event_handler);                    // Create and send signal (store in signal memory).                    Signal tmp = new Signal();                                if (tmp != null) {                                            // Set signal elements.                        tmp.priority = SignalHandler.NORMAL_PRIORITY;                        tmp.language = SignalHandler.NEURO_LANGUAGE;                        tmp.predicate = dynamics;                        tmp.object = statics;                            // Add signal to signal memory (interrupt vector table).                        MapHandler.add_map_element(signal_memory, tmp, SignalHandler.SIGNAL);                            } else {                                    LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not create initial signal. The signal is null.");                    }                        // The system is now started up and complete so that a loop                    // can be entered, waiting for signals (events/ interrupts)                    // which are stored/ found in the signal memory.                    Main.await(signal_memory);                    // The loop above is left as soon as its shutdown flag is set.                    // Event handler.                    JavaEventHandler.remove_event_handler(event_handler);                    event_handler = null;                    JavaEventHandler.signal_memory = null;                                        // Signal memory (signal queue).                    MapHandler.finalize_map(signal_memory);                    signal_memory = null;                    // XML parser.                    CategoryHandler.finalize_xml_parser(CategoryHandler.xml_parser);                    CategoryHandler.xml_parser = null;                    //                    // Runtime.getRuntime().exit(0);                    // and                    // System.exit(0);                    // do the same thing.                    // The program exits normally, when the last non-daemon thread exits.                    //                    LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Exit cyboi normally.");                    java.lang.System.exit(0);                } else {                        // Show help information.                    java.lang.System.out.println("Usage:\n"                        + "cyboi startup cybol.core.system.system");                }            } else {                LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not execute cyboi. The argument array is null.");            }        } catch (Exception e) {            //            // Runtime.getRuntime().exit(0);            // and            // System.exit(0);            // do the same thing.            // The system exits normally, when the last non-daemon thread exits.            // Since an exception was caught here, the system exits unnormally.            //            LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Exit cyboi unnormally. Undiscovered exception:\n");            e.printStackTrace();            java.lang.System.exit(1);        }    }