Skip to main contentdfsdf

  • Sep 25, 12

    "the RuntimeException class, which in turn inherits from Exception. By catching the Exception class, you are also catching RuntimeException as i"

    • block-structured concurrency. This was the only  game in town prior to Java 5, and it’s still worth understanding.
    • Next, we’ll cover what every working developer should know  about java.util.concurrent and how to use the basic concurrency building blocks it provides.

    16 more annotations...

    • The two strategies for scheduling threads on the CPU are preemptive and nonpreemptive scheduling. In case of preemptive scheduling, a thread with a higher priority (the moment it is created or acquires a higher priority) will preempt the running thread and acquire the CPU for execution. A preemptive scheduling scheme may also use time slicing, whereby threads at the same priority level will be allocated the CPU for a maximum of a certain fixed time interval. Windows NT is an example of a preemptive OS.
    • In case of nonpreemptive scheduling, a running thread continues using CPU cycles even if a thread with a higher priority exists. Thus, a running thread may be required to relinquish the CPU voluntarily so that other threads get a chance to execute. In this scheme, a badly written program can lock up your OS (a system hang-up). Nonpreemptive scheduling may also be time-sliced, where the user may decide the amount of time for the slice. For example, Windows 3.1 is a nonpreemptive OS,
1 - 3 of 3
20 items/page
List Comments (0)