28.01.2015 Views

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

61.2.GettingStarted|ASimple<strong>Hermes</strong>Program<br />

User address spaces<br />

arewritingamulti-userormulti-applicationsystemratherthanasingle application. FIGURE1.1.Atraditionaloperatingsystemwithmanyapplications<br />

Kernel<br />

theaddressspace.Joe'sapplication<strong>and</strong>Jane'sapplicationcaneachhave dierentbindingstotheirrespectiveprintffunctions. plicationtohaveasingleglobalmeaning,because\global"meanswithin kernelmaintainsmultipleaddressspacesinwhichyourunyourapplicationprograms.YourCapplicationisaprogramrunninginasingleaddress<br />

space.Resourcesoutsidetheaddressspace(e.g.terminals<strong>and</strong>printers) Lookatgure1.1,whichdepictsatraditionalsystemsuchasUNIX.A aremanagedbytheoperatingsystem,<strong>and</strong>assignedtotheaddressspace asawhole.Itmakessenseforalltheprintfstatementswithinanap-<br />

application,Jane'sapplication,modulesavailabletobothusers,<strong>and</strong>moduleswrittenbyoneuserbutaccessibletosomemodulesofanother.(See,<br />

forexample,gure1.2.)Inthissituation,itisclearthatnofunctionname canbeglobaltothewholesystem.AlthoughJoe'sapplication<strong>and</strong>Jane's applicationmaybothbepartofasinglelarge\program",itdoesnotmake Butsupposemyapplicationisanentiresystem,whichmayincludeJoe's

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!