The Java platform supports multithreading at the language level with the addition of sophisticated synchronization primitives: the language library provides the Thread class, and the run-time system provides monitor and condition lock primitives. At the library level, moreover, Java technology's high-level system libraries have been written to be thread safe: the functionality provided by the libraries is available without conflict to multiple concurrent threads of execution.
A white paper written by James Gosling and Henry McGilton.
I'm unable to understand the primitives thing. If some one can explain this.
Originally posted by Ernest Friedman-Hill:
Here they are using "primitive" to mean "a simple building block from which more complex concepts can be built."
okay... they way I understand now is that Java platform supports multithreading at language level with addition sophisticated synchronization of basic elements of program.
Java is providing multithreading at langauge level and in the same time also running/computing blocks of a complex program.
Correct me if i'm wrong.
the other reference to "higher level library" I would interpret as the regular API library methods that you call.... and interpret what it is saying as "the normal, average, user API methods" are designed to be safe for use in a threaded environment.
Thats the spin I get off of it...
Using these primitive data types, you can build other classes, thus meaning that anything else is a "derived data type".
To give an analogy, the primitive colors are Red, Green & Blue (RGB). Using these "primitive" colors red, blue and green you can mix them in different ways and compose other "derived colors" such as cyan, magenta, etc.
Hope the definition and the analogy helped.
here by primitives, it means services built into the language that accomplish tasks which you would otherwise have to do yourself.
for example, when you start the execution of a program, the command that you use in turn internally uses some set of methods to load the program into memory and start it executing/running. these set of (available) methods are then said to be primitives as they provide the basic way of interacting with the system/environment.
to put it in other way(in so many words). as you need the ints, floats, chars, etc to represent your data at the least if you are using a high level language, similarly you need the basic set of methods to interact with your program's/routine's environment comprising among other things the data. the ints, floats, chars are the data primitives and the set of methods are the service primitives.