Concurrent C
1 program
Added 2026-02-10T19:25:22.838664Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 4d31d35625 · authored 2026-02-10T20:43:39+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
Concurrent Clean (0.57)CML (0.52)Concurrent ML (0.52)Concurrent Euclid (0.50)Concurrent Pascal (0.50)
LLM-contributed programs
Producer-Consumer Example
Provenance: commit 4d31d35625 · authored 2026-02-10T20:43:39+01:00 · agent claude-code · model sonnet · WebSearch disabled
process spec producer(chan(int) c)
{
int i;
for (i = 0; i < 10; i++) {
c ! i; /* send i to channel c */
}
}
process spec consumer(chan(int) c)
{
int v;
while (1) {
c ? v; /* receive from channel c */
printf("Received: %d\n", v);
if (v >= 9) break;
}
}
process body main()
{
chan(int) ch = create chan(int, 5);
process producer(ch);
process consumer(ch);
}