class Events {

    public static void update (int threadID, int maxMillis) {
        if (threadID >= NUM_THREADS) {
            throw new IllegalArgumentException("threadID cannot >= number of threads, but threadID: " + threadID + " >= " + NUM_THREADS);
        }

        //process events
        managers[threadID].update(maxMillis);
    }

    protected  Events();

}