Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
ALGOL 68
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===par: Parallel processing=== ''ALGOL 68'' supports programming of parallel processing. Using the keyword '''PAR''', a ''collateral clause'' is converted to a ''parallel clause'', where the synchronisation of actions is controlled using [[Semaphore (programming)|semaphore]]s. In A68G the parallel actions are mapped to threads when available on the hosting [[operating system]]. In A68S a different paradigm of parallel processing was implemented (see below). '''PROC''' eat = '''VOID''': ( muffins-:=1; print(("Yum!",new line))), speak = '''VOID''': ( words-:=1; print(("Yak...",new line))); '''INT''' muffins := 4, words := 8; '''SEMA''' mouth = '''LEVEL''' 1; '''PAR''' '''BEGIN''' '''WHILE''' muffins > 0 '''DO''' '''DOWN''' mouth; eat; '''UP''' mouth '''OD''', '''WHILE''' words > 0 '''DO''' '''DOWN''' mouth; speak; '''UP''' mouth '''OD''' '''END'''
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)