static void HTMLArrayStackTests(int threadNumber, HTMLArrayStack arrayStack, SynchroHTML synchroHTMLFile) {
        //synchroHTMLFile.writingHTML("<br/>---- THREAD " + threadNumber + " STARTED ----", threadNumber);
        for (int i = 0; i < MAX_ITERATIONS; i++) {

            synchronized (arrayStack) {
                arrayStack.push(HTMLString("" + i, "thread" + threadNumber));
                synchroHTMLFile.writingHTML("\n<br/>", -1);
                synchroHTMLFile.writingHTML("Tread " + threadNumber + ". push(" + i + "). Index = "
                        + arrayStack.getIndex()
                        , threadNumber);
                synchroHTMLFile.writingHTML(" Stack: " + arrayStack.toString(),-1);
            }
            for (int j = 0; j<1000000; j++) {}
        }
        String poppedValue = new String();
        for (int i = 0; i < MAX_ITERATIONS; i++) {

            synchronized (arrayStack) {
                poppedValue = arrayStack.pop();
                synchroHTMLFile.writingHTML("\n<br/>",-1);
                synchroHTMLFile.writingHTML("Tread " + threadNumber + ". pop(): "
                        + poppedValue + ". Index = "
                        + arrayStack.getIndex()
                        , threadNumber);
                synchroHTMLFile.writingHTML(" Stack: " + arrayStack.toString(),-1);
            }
            for (int j = 0; j<100000; j++) {}
        }
    }