Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了一个小项目,我在其中使用了各种进程/共享内存/信号量。
我现在将不得不向我的讲师和几个同事解释我的代码和程序逻辑。
因此,我想知道人们通常使用什么样的符号/图表来描述这种程序。活动图?流程图?还有什么?
谢谢
在我的课程中,线程问题通过使用图表之类的东西向我们解释,标记关键点(更准确地说是需要同步的点)并解释你如何解决问题。如果您标记关键点,这种方式非常有效,例如:
T1 T2 T3 method A method A method A \ / / \ / / critical section 1 / / method B
等等