|#188on PLDB||40Years Old|
occam is a concurrent programming language that builds on the communicating sequential processes (CSP) process algebra, and shares many of its features. It is named after William of Ockham of Occam's Razor fame. occam is an imperative procedural language (such as Pascal). Read more on Wikipedia...
PROGRAM Hello #USE ioconv SEQ write.full.string(screen,"Hello World")
PROGRAM Hello -- Hello world in Occam #USE ioconv SEQ write.full.string(screen,"Hello World!")
ALT count1 < 100 & c1 ? data SEQ count1 := count1 + 1 merged ! data count2 < 100 & c2 ? data SEQ count2 := count2 + 1 merged ! data status ? request SEQ out ! count1 out ! count2