Answer the question
In order to leave comments, you need to log in
Is there a way to write down the algorithm of multi-threaded programs in a compact and visual way?
First of all, we are interested in options with a textual representation.
Answer the question
In order to leave comments, you need to log in
And what is wrong?
Поток 1
пока x < 10
x = x + 10
вернуть x * x
Поток 2
пока x > 10
x = x - 10
вернуть sqrt(x)
Ждать(x = поток1, y = поток2)
вывод x + y
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question