`
itspace
  • 浏览: 978533 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

THREADS_FLAG

阅读更多
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.
分享到:
评论

相关推荐

    Oracle Timesten 数据库 java手册

    - **设置 THREADS_FLAG 变量**:用于配置多线程支持,例如:`export THREADS_FLAG=1` #### 结论 Oracle Timesten 数据库 Java 手册为 Java 开发者提供了一套全面的指导,涵盖了从环境搭建到具体编程实践的各个方面...

    DataStage 8.7 on Linux安装文档

    - `THREADS_FLAG` 设置为native,以确保线程模型与系统匹配。 #### 五、DataStage 8.7 安装步骤 虽然具体安装步骤没有给出,但一般流程包括: 1. **下载安装包**:从IBM官网下载适合Linux平台的DataStage 8.7安装包...

    TimesTen for java 开发指导手册

    - **设置 THREADS_FLAG 变量**: 说明了如何配置 THREADS_FLAG 变量以优化多线程应用的性能。 ## 开发 Java 应用程序 ### 使用 TimesTen API - **连接到数据库**: 介绍了如何建立与 TimesTen 数据库的连接,并提供...

    linux5.4+oacle10gr2_rac双节点安装文档

    在本例中,以root用户在两个节点分别执行命令,创建了名为“oracle”的用户,并为其设置了环境变量,包括ORACLE_BASE、ORA_CRS_HOME、ORACLE_HOME、PATH、ORACLE_OWNER、ORACLE_SID、ORACLE_TERM、THREADS_FLAG、LD_...

    20220406-CMake立大功:glibc更新引发的陈年旧案-panruizhe1

    然后,我们怀疑是CMake的bug,于是查看了CMake的commit记录,发现了一个相关的commit(Kitware/CMake commit 68285bc8a91),该commit将FindThreads.cmake模块修改为遵从THREADS_PREFER_PTHREAD_FLAG变量的设置。...

    Oracle9.2.0.4 在RDHL AS 4update 2的安装手册

    此外,修改`oracle`用户的`bash_profile`文件,设置环境变量,如`ORACLE_BASE`、`ORACLE_HOME`、`PATH`、`CLASSPATH`、`ORACLE_OWNER`、`ORACLE_SID`、`ORACLE_TERM`、`LD_ASSUME_KERNEL`、`THREADS_FLAG`、`LD_...

    浅谈在Redhat9上安装Oracle92.docx

    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`用户身份运行安装程序...

    Oracle 9i Redhat 9安装过程.docx

    2. 需要注意的是,某些环境变量如`LD_ASSUME_KERNEL`、`THREADS_FLAG`、`LD_LIBRARY_PATH`对于Oracle的动态链接库加载至关重要。 3. 此外,还需要设置字符集,如`NLS_LANG`,确保支持中文显示。 然后,创建Oracle的...

    Oracle_11g安装教程.doc

    设置了多个环境变量,包括`ORACLE_BASE`, `ORACLE_HOME`, `ORA_CRS_HOME`, `ORACLE_PATH`, `ORACLE_SID`, `PATH`, `ORACLE_TERM`, `TNS_ADMIN`, `ORA_NLS10`, `LD_LIBRARY_PATH`, `LIBPATH`, `CLASSPATH`, `THREADS_...

    oracle 11g 安装

    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 四、...

    Oracle TimesTen Java Developer and Reference Guide

    - **THREADS_FLAG**:虽然文档未详细介绍,但通常这类变量用于控制线程模型或线程库的使用,以优化多线程应用程序的性能。 **4. 技术支持与版权信息** 文档强调了软件和文档的版权保护,明确指出除内部使用外,不...

    安装DataStage文档

    3. 编辑`dsenv`文件,设置DB2相关的环境变量,包括DB2DIR、DB2INSTANCE、INSTHOME、PATH、LIBPATH和THREADS_FLAG。 4. 通过`uv –admin –start`命令启动DS服务。 至此,DataStage的安装和基本配置已完成。理解并...

    Oracle_11g的linux安装配置

    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 ...

    Oracle11G for RHEL5 安装手册

    export THREADS_FLAG=native export EDITOR=vim export TEMP=/tmp export TMPDIR=/tmp ``` 2. **使更改生效:** ```bash source /etc/profile ``` #### 三、修改内核参数 为了确保 Oracle 数据库的稳定...

    linux下安装oracle文档

    此外,还需要设置`THREADS_FLAG`、`NLS_LANG`、`ORA_NLS33`、`DISPLAY`以及其他与语言和字符集相关的变量,以适应不同的语言需求和X Server连接。 在安装过程中,可能遇到与JDK版本兼容性的问题,如果遇到XServer...

    oracle11在as4下的安装

    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 ...

    Linux下Oracle自启动脚本

    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=...

Global site tag (gtag.js) - Google Analytics