Drawing concurrency charts using latex

I would like to be able to draw a beautiful concurrency diagram in my homework for the class that I accept. The ascii version will look something like this: Is there a way to do this using latex that would look really beautiful and clean?

Thread A ----|=====read(7)=====|----------------------------------->
Thread B -------------|======write(-3)=====|-----|===read(-7)===|--->

Or at least something like this.

+3
source share
2 answers

There are quite a few drawing languages ​​that integrate with tex.

As pointed out in a comment, Dia, at least on linux, can reset the metapost code that can be processed and inserted into your tex document.

(jpg, png, pdf, eps) . , , .

, ( ), : PGF, TIKZ, MetaPost

TIKZ PGF , texample.net

graphviz , , dot2tex, graphviz , .

+1

PGF/TikZ , , .

0

Source: https://habr.com/ru/post/1719128/


All Articles