Portability | portable |
---|---|
Stability | experimental |
Maintainer | m.misamore@gmail.com |
Safe Haskell | None |
Model directed process traces in a directed cubical framework.
Resource requests
type ResReq = (ReqType, ResId)Source
Resource request consists of acquiring/releasing a given resource.
Process Traces
Process trace is Process ID together with valid list of requests.
pTrace :: PID -> [ResReq] -> Maybe PTraceSource
Attempt to build valid process trace from ID and list of requests.
pTraces :: [[ResReq]] -> Maybe [PTrace]Source
Attempt to build list of process traces with default process IDs from list of lists of requests.
Modeling contention problems
ptsAmbReg :: [PTrace] -> VertSpanSource
Given a list of process traces, determine a minimal vertex span suitable for modeling a resource contention problem.
ptsForbRegs :: [PTrace] -> [VertSpan]Source
Given a list of process traces, calculate associated list of forbidden regions which represent resource contention. These regions may overlap to form more complex regions.