Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
30Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Multi Threaded Programming Guide (SUN)

Multi Threaded Programming Guide (SUN)

Ratings: (0)|Views: 687 |Likes:

More info:

Published by: arunodoy_dasgupta3078 on Aug 14, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/19/2011

pdf

text

original

 
MultithreadedProgrammingGuide
SunMicrosystems,Inc.4150NetworkCircleSantaClara,CA95054U.S.A.
PartNo:816–5137–12September2008
 
Copyright2008SunMicrosystems,Inc. 4150NetworkCircle,SantaClara,CA95054U.S.A. Allrightsreserved.SunMicrosystems,Inc.hasintellectualpropertyrightsrelatingtotechnologyembodiedintheproductthatisdescribedinthisdocument.Inparticular,andwithoutlimitation,theseintellectualpropertyrightsmayincludeoneormoreU.S.patentsorpendingpatentapplicationsintheU.S.andinothercountries.U.S.GovernmentRights–Commercialsotware.GovernmentusersaresubjecttotheSunMicrosystems,Inc.standardlicenseagreementandapplicableprovisionsotheFARanditssupplements.Thisdistributionmayincludematerialsdevelopedbythirdparties.PartsotheproductmaybederivedromBerkeleyBSDsystems,licensedromtheUniversityoCaliornia.UNIXisaregisteredtrademarkintheU.S.andothercountries,exclusivelylicensedthroughX/OpenCompany,Ltd.Sun,SunMicrosystems,theSunlogo,theSolarislogo,theJavaCofeeCuplogo,docs.sun.com,ClusterToolsJava,andSolarisaretrademarksorregisteredtrademarksoSunMicrosystems,Inc.oritssubsidiariesintheU.S.andothercountries.AllSPARCtrademarksareusedunderlicenseandaretrademarksorregisteredtrademarksoSPARCInternational,Inc.intheU.S.andothercountries.ProductsbearingSPARCtrademarksarebaseduponanarchitecturedevelopedbySunMicrosystems,Inc.TheOPENLOOKandSun
TM
GraphicalUserInteracewasdevelopedbySunMicrosystems,Inc.oritsusersandlicensees.SunacknowledgesthepioneeringefortsoXeroxinresearchinganddevelopingtheconceptovisualorgraphicaluserinteracesorthecomputerindustry.Sunholdsanon-exclusivelicenseromXeroxtotheXeroxGraphicalUserInterace,whichlicensealsocoversSun'slicenseeswhoimplementOPENLOOKGUIsandotherwisecomplywithSun'swrittenlicenseagreements.ProductscoveredbyandinormationcontainedinthispublicationarecontrolledbyU.S.ExportControllawsandmaybesubjecttotheexportorimportlawsinothercountries.Nuclear,missile,chemicalorbiologicalweaponsornuclearmaritimeendusesorendusers,whetherdirectorindirect,arestrictlyprohibited.ExportorreexporttocountriessubjecttoU.S.embargoortoentitiesidentiedonU.S.exportexclusionlists,including,butnotlimitedto,thedeniedpersonsandspecialldesignatednationalslistsisstrictlyprohibited.DOCUMENTATIONISPROVIDED“ASIS”ANDALLEXPRESSORIMPLIEDCONDITIONS,REPRESENTATIONSANDWARRANTIES,INCLUDINGANYIMPLIEDWARRANTYOFMERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEORNON-INFRINGEMENT,AREDISCLAIMED,EXCEPTTOTHEEXTENTTHATSUCHDISCLAIMERSAREHELDTOBELEGALLYINVALID.Copyright2008SunMicrosystems,Inc. 4150NetworkCircle,SantaClara,CA95054U.S.A. Tousdroitsréservés.SunMicrosystems,Inc.détientlesdroitsdepropriétéintellectuellerelatisàlatechnologieincorporéedansleproduitquiestdécritdanscedocument.Enparticulier,etcesanslimitation,cesdroitsdepropriétéintellectuellepeuventinclureunouplusieursbrevetsaméricainsoudesapplicationsdebrevetenattenteauxEtats-Unisetdansd'autrespays.Cettedistributionpeutcomprendredescomposantsdéveloppéspardestiercespersonnes.CertainescomposantsdeceproduitpeuventêtredérivéesdulogicielBerkeleyBSD,licenciésparl'UniversitédeCaliornie.UNIXestunemarquedéposéeauxEtats-Unisetdansd'autrespays;elleestlicenciéeexclusivementparX/OpenCompany,Ltd.Sun,SunMicrosystems,lelogoSun,lelogoSolaris,lelogoJavaCofeeCup,docs.sun.com,ClusterToolsJavaetSolarissontdesmarquesdeabriqueoudesmarquesdéposéesdeSunMicrosystems,Inc.,ousesliales,auxEtats-Unisetdansd'autrespays.TouteslesmarquesSPARCsontutiliséessouslicenceetsontdesmarquesdeabriqueoudesmarquesdéposéesdeSPARCInternational,Inc.auxEtats-Unisetdansd'autrespays.LesproduitsportantlesmarquesSPARCsontbaséssurunearchitecturedéveloppéeparSunMicrosystems,Inc.L'interaced'utilisationgraphiqueOPENLOOKetSunaétédéveloppéeparSunMicrosystems,Inc.poursesutilisateursetlicenciés.SunreconnaîtlesefortsdepionniersdeXeroxpourlarechercheetledéveloppementduconceptdesinteracesd'utilisationvisuelleougraphiquepourl'industriedel'inormatique.SundétientunelicencenonexclusivedeXeroxsurl'interaced'utilisationgraphiqueXerox,cettelicencecouvrantégalementleslicenciésdeSunquimettentenplacel'interaced'utilisationgraphiqueOPENLOOKetqui,enoutre,seconormentauxlicencesécritesdeSun.Lesproduitsquiontl'objetdecettepublicationetlesinormationsqu'ilcontientsontrégisparlalegislationaméricaineenmatièredecontrôledesexportationsetpeuventêtresoumisaudroitd'autrespaysdansledomainedesexportationsetimportations.Lesutilisationsnales,ouutilisateursnaux,pourdesarmesnucléaires,desmissiles,desarmeschimiquesoubiologiquesoupourlenucléairemaritime,directementouindirectement,sontstrictementinterdites.LesexportationsouréexportationsversdespayssousembargodesEtats-Unis,ouversdesentitésgurantsurleslistesd'exclusiond'exportationaméricaines,ycompris,maisdemanièrenonexclusive,lalistedepersonnesquiontobjetd'unordredenepasparticiper,d'uneaçondirecteouindirecte,auxexportationsdesproduitsoudesservicesquisontrégisparlalegislationaméricaineenmatièredecontrôledesexportationsetlalistederessortissantsspéciquementdesignés,sontrigoureusementinterdites.LADOCUMENTATIONESTFOURNIE
"
ENL'ETAT
"
ETTOUTESAUTRESCONDITIONS,DECLARATIONSETGARANTIESEXPRESSESOUTACITESSONTFORMELLEMENTEXCLUES,DANSLAMESUREAUTORISEEPARLALOIAPPLICABLE,YCOMPRISNOTAMMENTTOUTEGARANTIEIMPLICITERELATIVEALAQUALITEMARCHANDE,AL'APTITUDEAUNEUTILISATIONPARTICULIEREOUAL'ABSENCEDECONTREFACON.
080829@20795
 
Contents
........................................................................................................17MultithreadingTerms......................................................................................................................... 17SolarisMultithreadingLibrariesandStandards .............................................................................. 19BenetingFromMultithreading ....................................................................................................... 20ImprovingApplicationResponsiveness .................................................................................... 20UsingMultiprocessorsEciently .............................................................................................. 20ImprovingProgramStructure .................................................................................................... 20UsingFewerSystemResources .................................................................................................. 21CombiningThreadsandRPC .................................................................................................... 21MultithreadingConcepts ................................................................................................................... 22ConcurrencyandParallelism ..................................................................................................... 22MultithreadingStructure ............................................................................................................ 22ThreadScheduling ....................................................................................................................... 23ThreadCancellation .................................................................................................................... 24ThreadSynchronization ............................................................................................................. 24Usingthe64-bitArchitecture ............................................................................................................ 25
3

Activity (30)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
maraamo liked this
shashikumar00 liked this
jgalindop liked this
PabloSilveira liked this
christyeb liked this
nitinlucky liked this
brunoartico liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->