|
|
libcats.org
Java ThreadsScott Oaks, Henry WongThis book makes the following claims which as far as I can see are entirely baseless, for the reasons given:
> A Java virtual machine is required to implement a preemptive, priority-based scheduler The word 'pre-emptive' does not appear in the JLS. > The Java virtual machine never changes the priority of a thread, even if the thread has been running for a certain period of time Can't find that anywhere either. > the contract between the Java virtual machine and the underlying operating system is that the operating system must generally choose to run the Java thread with the highest priority The 'contract' is between the Java code and the JVM, not the JVM and the O/S. > That's what we mean when we say that Java implements a priority-based scheduler Java isn't required to 'implement' a scheduler at all. > This scheduler is implemented in a preemptive fashion, meaning that when a higher-priority thread comes along, that thread interrupts (preempts) whatever lower-priority thread is running at the time. This appears nowhere in the JLS. > The contract with the operating system, however, is not absolute, which means that the operating system can sometimes choose to run a lower-priority thread. In other words it's +not+ pre-emptive. Make up your mind. > Java's requirement for a priority-based, preemptive scheduling mechanism ... Which is nowhere to be found. > A Java thread can have one of 11 priorities MIN_PRIORITY is 1, MAX_PRIORITY is 10: that makes 10, not 11. > In fact, preemption means only that a higher-priority thread runs instead of a lower-priority one No it doesn't. It means that when a higher-priority thread becomes ready it pre-empts the execution of any lower-priority threads that are currently executing regardless of time-slice etc. This is a feature of real-time systems that Java is +not+ required to implement. This book cannot be recommended in the presence of these egregious errors. Doug Lea's book as recommended by other reviewers is the one to go for. EPUB | FB2 | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:
Проектирование и строительство. Дом, квартира, садАвтор: Петер Нойферт, Автор: Людвиг Нефф
Размер книги: 20.83 Mb
Система упражнений по развитию способностей человека (Практическое пособие)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 818 Kb
Сотворение мира (3-х томник)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 817 Kb
Радиолюбительские схемы на ИС типа 555Автор: Трейстер Р.Категория: Электротехника и связь
Размер книги: 13.64 Mb
Момент истины (В августе сорок четвертого...)Автор: Богомолов Владимир ОсиповичКатегория: О войне
Размер книги: 1.83 Mb
Только что пользователи скачали эти книги:
One Thousand and One Winning Chess Sacrifices and CombinationsАвтор: Fred Reinfeld
Размер книги: 10.41 Mb
Rudin W. Fourier analysis on groups (Interscience, 1962)(L)(T)(147s).djvuАвтор:
Размер книги: 1.95 Mb
Empirical Dynamic Asset Pricing: Model Specification and Econometric AssessmentАвтор: Kenneth J. SingletonКатегория: Экономика, Эконометрика
Размер книги: 4.02 Mb
Operative Techniques in LaryngologyАвтор: Clark A. Rosen, Автор: C. Blake Simpson
Размер книги: 22.80 Mb
Treaties with American Indians: An Encyclopedia of Rights, Conflicts, and Sovereignty (3 volume set)Автор: Donald Fixico
Размер книги: 70.21 Mb
With only the will to live: accounts of Americans in Japanese prison camps, 1941-1945Автор: Robert Sherman La Forte, Автор: Ronald E. Marcello, Автор: Richard L. Himmel
Размер книги: 678 Kb
Ghost Cats 1- ANTHologyАвтор: Clark Jaycee, Автор: Corvidae Elaine, Автор: Pillow Michelle MКатегория: fiction
Размер книги: 327 Kb
|
|
|