The HotJava browser uses a two-level multithreading. The main reason for this choice was dictated by a dual nature of the code execution:
-
The regular mode of execution is to interpret a preecompiled code written in the Java(TM) language. The executable code is a stream of bytecodes, thus the interpretation can be fairly fast.
-
When a higher performance is expected, however, the stream of bytecodes is being translated into the machine code on the fly.
-
Therefore, both the interpreted and compiled code can use the compiled thread support.
-
The Java language is based on a restricted subset of C++, with some added extensions from Objective C.
|