CONTENTS
Overview of the Native Threads Pack
System Requirements
Installation
Using the Native Threads Pack
- The THREADS_FLAG environment variable
- The -native and -green convenience options
OVERVIEW OF THE NATIVE THREADS PACK
When you install the Native Threads Pack, the Java virtual machine (VM)
is able to use native threads when running Java code. Native threads
can provide several advantages over the default threads package (called
green threads), depending on your computing situation. Among the
benefits of using the native threads VM are:
- If you run Java code in a multi-processor environment, the
Solaris kernel can schedule native threads on the parallel
processors for increased performance. By contrast, green
threads exist only at the user-level and are not mapped to
multiple kernel threads by the operating system. Performance
enhancement from parallelism cannot be realized using green
threads.
- The native threads VM can call into C libraries that use
Solaris native threads. Such libraries cannot be used with
green threads.
- When using the native threads, the VM can avoid some
inefficient remapping of I/O system calls that are necessary
when green threads are used.
In some instances, it may be advisable to use the default green
threads. Native code that is not multithread safe (MT-safe) may not
work correctly with native threads. In general, if you aren't using
the native Solaris threads mechanisms directly, then you need to
compile your native code with the option -D_REENTRANT to make sure
that they work correctly in a threaded environment. You may also need
to use reentrant versions of certain Solaris interfaces.
分享到:
相关推荐
- **设置 THREADS_FLAG 变量**:用于配置多线程支持,例如:`export THREADS_FLAG=1` #### 结论 Oracle Timesten 数据库 Java 手册为 Java 开发者提供了一套全面的指导,涵盖了从环境搭建到具体编程实践的各个方面...
- `THREADS_FLAG` 设置为native,以确保线程模型与系统匹配。 #### 五、DataStage 8.7 安装步骤 虽然具体安装步骤没有给出,但一般流程包括: 1. **下载安装包**:从IBM官网下载适合Linux平台的DataStage 8.7安装包...
- **设置 THREADS_FLAG 变量**: 说明了如何配置 THREADS_FLAG 变量以优化多线程应用的性能。 ## 开发 Java 应用程序 ### 使用 TimesTen API - **连接到数据库**: 介绍了如何建立与 TimesTen 数据库的连接,并提供...
在本例中,以root用户在两个节点分别执行命令,创建了名为“oracle”的用户,并为其设置了环境变量,包括ORACLE_BASE、ORA_CRS_HOME、ORACLE_HOME、PATH、ORACLE_OWNER、ORACLE_SID、ORACLE_TERM、THREADS_FLAG、LD_...
然后,我们怀疑是CMake的bug,于是查看了CMake的commit记录,发现了一个相关的commit(Kitware/CMake commit 68285bc8a91),该commit将FindThreads.cmake模块修改为遵从THREADS_PREFER_PTHREAD_FLAG变量的设置。...
此外,修改`oracle`用户的`bash_profile`文件,设置环境变量,如`ORACLE_BASE`、`ORACLE_HOME`、`PATH`、`CLASSPATH`、`ORACLE_OWNER`、`ORACLE_SID`、`ORACLE_TERM`、`LD_ASSUME_KERNEL`、`THREADS_FLAG`、`LD_...
export THREADS_FLAG=native export LD_LIBRARY_PATH=/soft/oracle/lib:$LD_LIBRARY_PATH export PATH=/$ORACLE_HOME/bin:$PATH ``` 开始安装Oracle 9.2。将ISO镜像挂载到硬盘,然后以`oracle`用户身份运行安装程序...
2. 需要注意的是,某些环境变量如`LD_ASSUME_KERNEL`、`THREADS_FLAG`、`LD_LIBRARY_PATH`对于Oracle的动态链接库加载至关重要。 3. 此外,还需要设置字符集,如`NLS_LANG`,确保支持中文显示。 然后,创建Oracle的...
设置了多个环境变量,包括`ORACLE_BASE`, `ORACLE_HOME`, `ORA_CRS_HOME`, `ORACLE_PATH`, `ORACLE_SID`, `PATH`, `ORACLE_TERM`, `TNS_ADMIN`, `ORA_NLS10`, `LD_LIBRARY_PATH`, `LIBPATH`, `CLASSPATH`, `THREADS_...
export THREADS_FLAG=native export TEMP=/tmp export TMPDIR=/tmp export NLS_LANG=american_america.WE8ISO8859P1 export DISPLAY=10.198.90.55:2 alias sysdba="sqlplus '/as sysdba'" export EDITOR=vi 四、...
- **THREADS_FLAG**:虽然文档未详细介绍,但通常这类变量用于控制线程模型或线程库的使用,以优化多线程应用程序的性能。 **4. 技术支持与版权信息** 文档强调了软件和文档的版权保护,明确指出除内部使用外,不...
export THREADS_FLAG=native export TEMP=/tmp export TMPDIR=/tmp export NLS_LANG=american_america.WE8ISO8859P1 export DISPLAY=10.198.90.55:2 alias sysdba="sqlplus '/as sysdba'" export EDITOR=vi ...
export THREADS_FLAG=native export EDITOR=vim export TEMP=/tmp export TMPDIR=/tmp ``` 2. **使更改生效:** ```bash source /etc/profile ``` #### 三、修改内核参数 为了确保 Oracle 数据库的稳定...
此外,还需要设置`THREADS_FLAG`、`NLS_LANG`、`ORA_NLS33`、`DISPLAY`以及其他与语言和字符集相关的变量,以适应不同的语言需求和X Server连接。 在安装过程中,可能遇到与JDK版本兼容性的问题,如果遇到XServer...
export THREADS_FLAG=native export TEMP=/tmp export TMPDIR=/tmp export NLS_LANG=american_america.WE8ISO8859P1 export DISPLAY=10.198.90.55:2 alias sysdba="sqlplus '/as sysdba'" export EDITOR=vi ...
export THREADS_FLAG=native LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH export PATH=$PATH:$ORACLE_HOME/bin export NLS_LANG=...