encyclopegia.org

UNITY (programming language)

UNITY is a programming language constructed by K. Mani Chandy and Jayadev Misra for their book Parallel Program Design: A Foundation. It is a theoretical language which focuses on what, instead of where, when or how. The language contains no method of flow control, and program statements run in a nondeterministic way until statements cease to cause changes during execution. This allows for programs to run indefinitely, such as auto-pilot or power plant safety systems, as well as programs that would normally terminate (which here converge to a fixed point).

UNITY is a programming language constructed by K. Mani Chandy and Jayadev Misra for their book Parallel Program Design: A Foundation. It is a theoretical language which focuses on what, instead of where, when or how. The language contains no method of flow control, and program statements run in a nondeterministic way until statements cease to cause changes during execution. This allows for programs to run indefinitely, such as auto-pilot or power plant safety systems, as well as programs that would normally terminate (which here converge to a fixed point). All statements are assignments, and are separated by # . A statement can consist of multiple assignments, of the form a,b,c := x,y,z , or a := x || b := y || c := z . You can also have a quantified statement list, <# x,y : expression :: statement> , where x and y are chosen randomly among the values that satisfy expression. A quantified assignment is similar. In , statement is executed simultaneously for all pairs of x and y that satisfy expression. ==Examples== ===Bubble sort=== Bubble sort the array by comparing adjacent numbers, and swapping them if they are in the wrong order. Using \Theta(n) expected time, \Theta(n) processors and \Theta(n^2) expected work. The reason you only have \Theta(n) expected time, is that k is always chosen randomly from \{0,1\} . This can be fixed by flipping k manually. Program bubblesort declare n: integer, A: array [0..n-1] of integer initially n = 20 # assign A[i+1] > > end ===Rank-sort=== You can sort in \Theta(\log n) time with rank-sort. You need \Theta(n^2) processors, and do \Theta(n^2) work. Program ranksort declare n: integer, A,R: array [0..n-1] of integer initially n = 15 # assign > # end ===Floyd–Warshall algorithm=== Using the Floyd–Warshall algorithm all pairs shortest path algorithm, we include intermediate nodes iteratively, and get \Theta(n) time, using \Theta(n^2) processors and \Theta(n^3) work. Program shortestpath declare n,k: integer, D: array [0..n-1, 0..n-1] of integer initially n = 10 # k = 0 # assign || k := k + 1 if k \Theta(\log^2 n) time, using \Theta(n^3) processors and \Theta(n^3 \log n) work. Program shortestpath2 declare n: integer, D: array [0..n-1, 0..n-1] of integer initially n = 10 # assign ) > end After round r , D[i,j] contains the length of the shortest path from i to j of length 0 \dots r . In the next round, of length 0 \dots 2r , and so on. ==References== K. Mani Chandy and Jayadev Misra (1988) Parallel Program Design: A Foundation.

References

No reference rows published for this article.

Cite this article

MLA

"UNITY (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/unity-programming-language. Accessed 24 November 2026.

Chicago

"UNITY (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/unity-programming-language.

APA

encyclopegia.org. (2026). UNITY (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/unity-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Thomas Pitt (character)

enwiki · references available

Mart Sander

enwiki · references available

Baron Radstock

enwiki · references available

White poppy

enwiki · references available

Bidston Hill

enwiki · references available

Mustafa Mahmoud

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1371167055 · 0.5 · snapshot enwiki-001371167055

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.