没有合适的资源?快使用搜索试试~ 我知道了~
Oracle Solaris 10 Programming Interfaces Guide-312
需积分: 5 0 下载量 95 浏览量
2023-06-28
11:53:47
上传
评论
收藏 1.77MB PDF 举报
温馨提示
试读
312页
Oracle Solaris 10 Programming Interfaces Guide-312
资源推荐
资源详情
资源评论
Programming Interfaces Guide
Part No: 817–4415–15
August 2009
Copyright ©2009Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without
limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries.
U.S. Government Rights – Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions
of the FAR and its supplements.
This distribution may include materials developed by third parties.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, the Solaris logo, the Java Coee Cup logo, docs.sun.com, Java, and Solaris are trademarks or registered trademarks of Sun
Microsystems, Inc. or its subsidiaries in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of
SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc.
The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering eorts of
Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the
Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license
agreements.
Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in
other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export
or reexport to countries subject to U.S. embargo or to entities identied on U.S. export exclusion lists, including, but not limited to, the denied persons and specially
designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO
THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright ©2009Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
Sun Microsystems, Inc. détient les droits de propriété intellectuelle relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier,
et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plusieurs brevets américains ou des applications de brevet en attente aux Etats-Unis
et dans d'autres pays.
Cette distribution peut comprendre des composants développés par des tierces personnes.
Certaines composants de ce produit peuvent être dérivées du logiciel Berkeley BSD, licenciés par l'Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d'autres pays; elle est licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, le logo Solaris, le logo Java Coee Cup, docs.sun.com, Java et Solaris sont des marques de fabrique ou des marques déposées de
Sun Microsystems, Inc., ou ses liales, aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou
des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés sur une architecture
développée par Sun Microsystems, Inc.
L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les eorts de
pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient
une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface
d'utilisation graphique OPEN LOOK et qui, en outre, se conforment aux licences écrites de Sun.
Les produits qui font l'objet de cette publication et les informations qu'il contient sont régis par la legislation américaine en matière de contrôle des exportations et
peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations nales, ou utilisateurs naux, pour des armes nucléaires,
des missiles, des armes chimiques ou biologiques ou pour le nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou
réexportations vers des pays sous embargo des Etats-Unis, ou vers des entités gurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière
non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui
sont régis par la legislation américaine en matière de contrôle des exportations et la liste de ressortissants spéciquement designés, sont rigoureusement interdites.
LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES
SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE
IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.
110417@25097
Contents
Preface ...................................................................................................................................................11
1 Memory and CPU Management ........................................................................................................15
Memory Management Interfaces ......................................................................................................15
Creating and Using Mappings .................................................................................................... 15
Removing Mappings .................................................................................................................... 16
Cache Control .............................................................................................................................. 16
Library-Level Dynamic Memory ....................................................................................................... 17
Dynamic Memory Allocation ..................................................................................................... 17
Dynamic Memory Debugging .................................................................................................... 18
Other Memory Control Interfaces ............................................................................................. 20
CPU Performance Counters .............................................................................................................. 21
API Additions to libcpc ............................................................................................................. 21
2 Remote Shared Memory API for Solaris Clusters ........................................................................... 27
Overview of the Shared Memory Model ........................................................................................... 27
API Framework ................................................................................................................................... 28
API Library Functions ........................................................................................................................ 29
Interconnect Controller Operations ......................................................................................... 29
Cluster Topology Operations ..................................................................................................... 31
Administrative Operations ......................................................................................................... 32
Memory Segment Operations .................................................................................................... 33
RSMAPI General Usage Notes ........................................................................................................... 50
Segment Allocation and File Descriptor Usage ........................................................................ 50
Export-Side Considerations .......................................................................................................50
Import-Side Considerations .......................................................................................................50
RSM Congurable Parameters ................................................................................................... 50
3
3 Session Description Protocol API ......................................................................................................53
Session Description API Overview ...................................................................................................53
SDP Library Functions ........................................................................................................................ 56
Creating the SDP Session Structure ........................................................................................... 56
Searching the SDP Session Structure ......................................................................................... 63
Shutting Down the SDP Session Structure ............................................................................... 65
SDP API Utility Functions ..........................................................................................................66
4 Process Scheduler ................................................................................................................................71
Overview of the Scheduler .................................................................................................................. 71
Time-Sharing Class ...................................................................................................................... 73
System Class .................................................................................................................................. 74
Real-time Class ............................................................................................................................. 74
Interactive Class ........................................................................................................................... 74
Fair-Share Class ............................................................................................................................ 74
Fixed-Priority Class ..................................................................................................................... 75
Commands and Interfaces ................................................................................................................. 75
priocntl Usage ............................................................................................................................ 77
priocntl Interface .......................................................................................................................78
Interactions With Other Interfaces ................................................................................................... 78
Kernel Processes ........................................................................................................................... 78
Using fork and exec .................................................................................................................... 78
Using nice .................................................................................................................................... 79
init(1M) ....................................................................................................................................... 79
Scheduling and System Performance ................................................................................................ 79
Process State Transition .............................................................................................................. 79
5 Locality Group APIs .............................................................................................................................83
Locality Groups Overview .................................................................................................................. 83
Verifying the Interface Version ......................................................................................................... 86
Initializing the Locality Group Interface .......................................................................................... 86
Using lgrp_init() ...................................................................................................................... 87
Using lgrp_fini() ...................................................................................................................... 87
Locality Group Hierarchy .................................................................................................................. 88
Using lgrp_cookie_stale() ..................................................................................................... 88
Contents
Programming Interfaces Guide • August 20094
Using lgrp_view() ...................................................................................................................... 88
Using lgrp_nlgrps() ................................................................................................................. 89
Using lgrp_root() ...................................................................................................................... 89
Using lgrp_parents() ............................................................................................................... 89
Using lgrp_children() ............................................................................................................. 90
Locality Group Contents .................................................................................................................... 90
Using lgrp_resources() ........................................................................................................... 90
Using lgrp_cpus() ...................................................................................................................... 91
Using lgrp_mem_size() ............................................................................................................. 91
Locality Group Characteristics .......................................................................................................... 92
Using lgrp_latency_cookie() ................................................................................................ 92
Locality Groups and Thread and Memory Placement .................................................................... 93
Using lgrp_home() ...................................................................................................................... 93
Using madvise() .......................................................................................................................... 94
Using madv.so.1 .......................................................................................................................... 95
Using meminfo() .......................................................................................................................... 97
Locality Group Anity ............................................................................................................... 99
Examples of API Usage ..................................................................................................................... 101
6 Input/Output Interfaces ...................................................................................................................109
Files and I/O Interfaces ..................................................................................................................... 109
Basic File I/O ............................................................................................................................... 109
Advanced File I/O ...................................................................................................................... 111
File System Control .................................................................................................................... 112
Using File and Record Locking ........................................................................................................ 112
Choosing a Lock Type ............................................................................................................... 112
Selecting Advisory or Mandatory Locking ............................................................................. 113
Cautions About Mandatory Locking ....................................................................................... 114
Supported File Systems .............................................................................................................. 114
Terminal I/O Functions .................................................................................................................... 118
7 Interprocess Communication ..........................................................................................................121
Pipes Between Processes ................................................................................................................... 121
Named Pipes ...................................................................................................................................... 123
Sockets Overview ............................................................................................................................... 123
Contents
5
剩余311页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_2024-05-21-17-06-42-64_2332cb9b27b851b548ba47a91682926c.jpg
- 毕业设计参考 - 基于树莓派、OpenCV及Python的人脸识别
- node-v18.20.2-linux-arm64
- 222222222222
- 16张相机标定图片,可复现本文畸变矫正
- dbeaver-ce-23.3.1-x86_64-setup.zip
- 基于X86 AVX2指令的快速卷积实现
- VMware-ESXi-7.0U3n-21930508-depot.zip文件
- MySQL 在 Windows 系统下的安装教程.zip
- Access文件数据库访问的客户端
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功