M
M
Maxim2016-06-28 01:45:20
Documentation
Maxim, 2016-06-28 01:45:20

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

2 answer(s)
X
xmoonlight, 2016-06-28
@xmoonlight

www.codeuml.com

S
SolidMinus, 2016-06-28
@SolidMinus

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

A complete flight of fancy, the recording of the algorithm is just a formal system, you are free to invent anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question