Log:
Évaluations - 0, GPA: 0 ( )

Instructions HP, Modèle HP NonStop G-Series

Fabricant : HP
Taille : 349.94 kb
Nom Fichier :
Langue d'enseignement: en
Aller à la télécharger



Par ce dispositif a également d'autres instructions :

Facilité d'utilisation


Relink the Java virtual machine (Java VM) by using the
6.
/usr/tandem/install/Makefile.
For more information about the Makefile, see the /usr/tandem/install/README file.
The javahjni demo shows an example of how to create a library file and link it in with a java
executable. It also shows using IEEE floating point.
The remainder of this subsection explains how to use sockets.
Sockets
Use only the NonStop Server for Java 4 socket implementation in java.net (the standard Java socket). All
socket I/O calls are thread-safe and nonblocking.
If you need to make socket calls from JNI code, use the pthread wrappers to determine if a socket is read
(spt_fd_read_ready) or write ready (spt_fd_write_ready). Also use the pthread wrappers when
closing (spt_close) the socket. If you make a call to select, the entire Java VM process blocks until the
call completes. If you use Java sockets, the coding effort is much simplier. If you use Java sockets, the Java
VM can schedule other threads while one thread is waiting for socket completion.
Calling Java Methods From C or C++
You can create your own C or C++ program and use the Invocation API to load the Java VM into an
arbitrary native program. Be sure to follow these guidelines:
Compile code written in C++ by using the
q
-Wversion2 compiler and the -WIEEE_float
compiler command-line options.
In the NonStop system environment, link the NonStop Server for Java 4 libraries into the custom-built
q
main program.
Do not set signal handlers for the following signals:
q
SIGSEGV, SIGPIPE, SIGCHLD, SIGILL,
SIGFPE, SIGINT, SIGQUIT, SIGTERM, and SIGHUP.
Set the executable to use IEEE floating point.
q
When a program uses the Invocation API to start a Java VM, its function returns and parameters of type
float or double are in IEEE floating-point format. Any parameters of type float or double that are
passed to NonStop Server for Java 4 must also be in IEEE floating-point format. If such a program wants to
convert between TNS floating-point format and IEEE floating-point format, the Guardian Procedure Calls
Manual documents a series of procedures with names beginning with NSK_FLOAT_ that can be used to
convert float and double data between the two formats.
To run the Invocation API demo, follow the instructions for the Invocation API demo in the README file in
the directory /usr/tandem/java/demo/invocation_api.
Using the compaq.liblist System Property
By default, the NonStop Server for Java 4 does not throw an UnsatisfiedLinkError exception when
System.load or System.loadLibrary are called for a library that has not been statically linked into
the Java virtual machine. An UnsatisfiedLinkError is thrown, however, when a native method is
invoked if that native method does not exist in the Java VM. NonStop Server for Java 4 does not support
dynamically linked libraries.
To catch an UnsatisfiedLinkError during a call to load or loadLibrary when a static library has


...

Ce manuel est également adapté pour les modèles :
Ordinateurs - HP NonStop L-Series (349.94 kb)

Écrivez votre propre critique du dispositif



Texte du message
Votre nom :
Entrez les deux chiffres :
capcha





catégories