http://www.wordwendang.com/en/ - free word documents download |
Current location: Word document > Information Technology >
Module 6:  CPU Scheduling_Module 6: CPU SchedulingB(3)
Updated:2011-11-29 Category:CPU
    FIFO Queue is Used if There Are Multiple Threads With the Same Priority. Java Thread Scheduling (cont) JVM Schedules a Thread to Run When:
      The Currently Running Thread Exits the Runnable State.
        A Higher Priority Thread Enters the Runnable State * Note – the JVM Does Not Specify Whether Threads are Time-Sliced or Not. Time-Slicing
          Since the JVM Doesn’t Ensure Time-Slicing, the yield() Method May Be Used: while (true) { // perform CPU-intensive task . . . Thread.yield(); } This Yields Control to Another Thread of Equal Priority. Thread Priorities
            Thread Priorities: Priority Comment Thread.MIN_PRIORITYMinimum Thread Priority Thread.MAX_PRIORITYMaximum Thread Priority Thread.NORM_PRIORITYDefault Thread Priority Priorities May Be Set Using setPriority() method: setPriority(Thread.NORM_PRIORITY + 2); Algorithm Evaluation
              Deterministic modeling – takes a particular predetermined workload and defines the performance of each algorithm for that workload.
URL: http://www.wordwendang.com/en/it/1129/35911.html
------division-----