←back to thread

289 points kristoff_it | 3 comments | | HN request time: 0s | source
Show context
threatofrain ◴[] No.44609107[source]
IMO the author is mixed up on his definitions for concurrency.

https://lamport.azurewebsites.net/pubs/time-clocks.pdf

replies(4): >>44609321 #>>44609563 #>>44610163 #>>44611854 #
tines ◴[] No.44609321[source]
Can you explain more instead of linking a paper? I felt like the definitions were alright.

> Asynchrony: the possibility for tasks to run out of order and still be correct.

> Concurrency: the ability of a system to progress multiple tasks at a time, be it via parallelism or task switching.

> Parallelism: the ability of a system to execute more than one task simultaneously at the physical level.

replies(9): >>44609334 #>>44609420 #>>44609491 #>>44609531 #>>44609532 #>>44609822 #>>44609915 #>>44610273 #>>44611918 #
amelius ◴[] No.44609915[source]
> Asynchrony: the possibility for tasks to run out of order and still be correct.

Can't we just call that "independent"?

replies(1): >>44610603 #
skydhash ◴[] No.44610603{3}[source]
Not really. There may be some causal relations.
replies(1): >>44610613 #
1. amelius ◴[] No.44610613{4}[source]
Can you give an example?
replies(1): >>44611648 #
2. skydhash ◴[] No.44611648[source]
Locks, scheduling,... That introduce some synchronicity and so some kind of order. But it's enforced on the system and not a required mechanism.
replies(1): >>44613615 #
3. amelius ◴[] No.44613615[source]
But if I run "ls" on a machine, and another user runs "ls" on the same machine, wouldn't you consider them independent, even though the OS uses all kinds of locks and what not under the hood?