I would implement a direct acyclic graph representation in which the nodes are event,…
- User
I would implement a direct acyclic graph representation in which the nodes are event, i.e., process that stands for a time, and the edges represent the dependency between them. However, between not linked nodes I can have dependencies like synchronization mechanism. Indeed, the wanted temporal representation is the one of the node, however some node can be decomposed in sub-nodes, such that a particular sub-event can trigger an action in another node. Consider the following example, with right pointing arrow I mean dependency with capital letter node. A -> B -> C; D -> C. However, A is composed of A1, A2 such that when A1 ends D must start. I am considering to implement a synchronization schema borrowing them from shared memory model, like to have a shared temporal model or a shared temporal-events model. Please provide feedback on the provided idea, especially underlining any missing details I am not providing you. Please provide textual feedback, not source. If my context is ambiguous ask instead of provide answer.
- Assistant
- User
Let me introduce the simplest case study. Here the scenario, let's assume the previous notation and add ? for a condition check and ! for a mutex / semaphore mechanism, TE is the execution time of a node. A -> B -> C; A?D->C; Suppose now that my variable is the time, and TE(A1) = TE(A2) = TE(A/2). A condition variable can be that when A1 ends, i.e., half of the process has been done, D is triggered. Please provide any pitfalls in this case study. Do not provide code.
- Assistant