Each UnorderListmember contains an array of J3dThreadDataobjects, containing (Free web servers)
Each UnorderListmember contains an array of J3dThreadDataobjects, containing a J3dThread member and additional scheduling information. The MasterControl.doWorkmethod (invoked by the MasterControlThread.runmethod) runs in two phases. The first phase checks for any pending messages to be executed and returns if there is nothing to execute. The second phase runs the threads under the control of the MasterControlclass. void doWork() { runMonitor( CHECK_FOR_WORK, null, null, null, null); if(pendingRequest) handlePendingRequest(); if(!running) return; if(threadListsChanged) updateWorkThreads(); updateTimeValues(); View aview[] = (View[])views.toArray(false); for(int i = views.size() - 1; i >= 0; i–) if(aview[i].active) aview[i].updateViewCache(); runMonitor( RUN_THREADS, stateWorkThreads, renderWorkThreads, requestRenderWorkThreads, null); if(renderOnceList.size() > 0) clearRenderOnceList(); } The actual runMonitormethod is fairly complex, and it seems to perform the four functions shown in table 18.4, depending on the value of the first argument. Table 18.4 runMonitor Identifier Index Purpose CHECK_FOR_WORK 0 Evaluates each thread and set the MasterControlThread to wait if none of the threads needs to be processed. SET_WORK 1 Calls notify() on the MasterControlThread. RUN_THREADS 2 Iterates through all the J3dThreadData under the control of the MasterControl. The notify() method is called on each thread associated with each J3dThreadData object. SET_WORK_FOR_REQUEST_RENDERER 5 Sets the requestRenderWorkToDo member to true and calls 317
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.