Intel Guide for Developing
Multithreaded Application
http://www.intel.com/software/threading-guide
ii
Disclaimers
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL
PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE,
TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT.
EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH
PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL
DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR
USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO
FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT
OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS OTHERWISE AGREED IN WRITING BY INTEL, THE INTEL PRODUCTS
ARE NOT DESIGNED NOR INTENDED FOR ANY APPLICATION IN WHICH THE
FAILURE OF THE INTEL PRODUCT COULD CREATE A SITUATION WHERE
PERSONAL INJURY OR DEATH MAY OCCUR.
Intel may make changes to specifications and product descriptions at any time, without
notice. Designers must not rely on the absence or characteristics of any features or
instructions marked "reserved" or "undefined." Intel reserves these for future definition
and shall have no responsibility whatsoever for conflicts or incompatibilities arising from
future changes to them. The information here is subject to change without notice. Do not
finalize a design with this information.
The products described in this document may contain design defects or errors known as
errata which may cause the product to deviate from published specifications. Current
characterized errata are available on request.
Contact your local Intel sales office or your distributor to obtain the latest specifications
and before placing your product order.
Copies of documents which have an order number and are referenced in this document,
or other Intel literature, may be obtained by calling 1-800-548-4725, or go
to:
http://www.intel.com/design/literature.htm
Copyright © 2011 Intel Corporation. All rights reserved
BunnyPeople, Celeron, Celeron Inside, Centrino, Centrino Inside, Core Inside, i960, Intel,
the Intel logo, Intel AppUp, Intel Atom, Intel Atom Inside, Intel Core, Intel Inside, the
Intel Inside logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver,
Intel SpeedStep, Intel Sponsors of Tomorrow, the Intel Sponsors of Tomorrow. logo,
Intel StrataFlash, Intel Viiv, Intel vPro, Intel XScale, InTru, the InTru logo, InTru
soundmark, Itanium, Itanium Inside, MCS, MMX, Moblin, Pentium, Pentium Inside,
skoool, the skoool logo, Sound Mark, The Journey Inside, vPro Inside, VTune, Xeon, and
Xeon Inside are trademarks of Intel Corporation in the U.S. and other countries.
*Other names and brands may be claimed as the property of others.
iii
The Authors
The Intel Guide for Developing Multithreaded Applications
was written and edited by the following Intel Software
Engineering Team members:
Levent Akyil
Clay Breshears
Martyn Corden
Julia Fedorova
Paul Fischer
Henry Gabb
Victoria Gromova
Jay Hoeflinger
Richard Hubbard
Alexey Kukanov
Kevin O'Leary
David Ott
Eric Palmer
Anton Pegushin
Paul Petersen
Todd Rosenquist
Aaron Tersteeg
Vladimir Tsymbal
Mike Voss
Thomas Zipplies
Visit the website for up-to-date articles:
www.intel.com/software/threading-guide
iv
Optimization Notice
Intel
®
compilers, associated libraries and associated development tools may
include or utilize options that optimize for instruction sets that are available
in both Intel
®
and non-Intel microprocessors (for example SIMD instruction
sets), but do not optimize equally for non-Intel microprocessors. In addition,
certain compiler options for Intel compilers, including some that are not
specific to Intel micro-architecture, are reserved for Intel microprocessors.
For a detailed description of Intel compiler options, including the instruction
sets and specific microprocessors they implicate, please refer to the “Intel
®
Compiler User and Reference Guides” under “Compiler Options.” Many
library routines that are part of Intel
®
compiler products are more highly
optimized for Intel microprocessors than for other microprocessors. While
the compilers and libraries in Intel
®
compiler products offer optimizations for
both Intel and Intel-compatible microprocessors, depending on the options
you select, your code and other factors, you likely will get extra performance
on Intel microprocessors.
Intel
®
compilers associated libraries and associated development tools may
or may not optimize to the same degree for non-Intel microprocessors for
optimizations that are not unique to Intel microprocessors. These
optimizations include Intel
®
Streaming SIMD Extensions 2 (Intel
®
SSE2),
Intel
®
Streaming SIMD Extensions 3 (Intel
®
SSE3), and Supplemental
Streaming SIMD Extensions 3 (Intel
®
SSSE3) instruction sets and other
optimizations. Intel does not guarantee the availability, functionality, or
effectiveness of any optimization on microprocessors not manufactured by
Intel. Microprocessor-dependent optimizations in this product are intended
for use with Intel microprocessors.
While Intel believes our compilers and libraries are excellent choices to assist
in obtaining the best performance on Intel
®
and non-Intel microprocessors,
Intel recommends that you evaluate other compilers and libraries to
determine which best meet your requirements. We hope to win your
business by striving to offer the best performance of any compiler or library;
please let us know if you find we do not.
Notice revision #20101101
v
评论