Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean when one language is a parallel superset of another?

I'm reading a journal article about Real-Time Concurrent C, and it mentions in the abstract (so any of you can see the context through that link as well) that "Concurrent C, is a parallel superset of C (and of C++)".

Now I know what a superset is, but what do they mean by a "parallel superset" when referring to programming languages?

like image 915
pepers Avatar asked May 21 '15 15:05

pepers


People also ask

What does superset mean in programming?

A set A is a superset of another set B if all elements of the set B are elements of the set A. The superset relationship is denoted as A⊃B. For example, if A is the set {♢,♡,♣,♠} and B is the set {♢,♣,♠}, then A⊃B but B⊅A.

Is parallelism a subset of concurrency?

Parallelism is a subset of concurrency. Concurrency refers to trying to do multiple things at once while parallelism refers to doing many things at once. Even on a single core processor concurrency is possible by switching among the threads.

Is C++ a superset of C?

C++ is a superset of C. All your C programs will work without any modification in this environment. However, we recommend that you get accustomed to new styles and techniques of C++ from day one.


1 Answers

They're claiming two things, not one thing that is "modified". It's like saying "a quick red car"; the car is quick and red, it's not having a fast color.

  • It's parallel, because it supports parallel programming
  • It's a super-set, because every valid C or C++ program is also a valid Concurrent C program.

That's a bit weird too, since not every valid C program is a valid C++ program.

like image 111
unwind Avatar answered Oct 15 '22 05:10

unwind