Library prosa.model.schedule.parallelism

Require Export prosa.behavior.all.

Intra-Job Parallelism

In the following, we define schedules in which a job cannot execute on multiple cores simultaneously. Jobs may still migrate between cores.
Section JobParallelism.

Consider any job type, processor model, and schedule.
  Context {Job : JobType} {PState : ProcessorState Job}.
  Variable sched : schedule PState.

Any two cores executing the same job at the same instant coincide.
  Definition no_intra_job_parallelism :=
    ∀ j t c1 c2,
      scheduled_on j (sched t) c1 →
      scheduled_on j (sched t) c2 →
      c1 = c2.

End JobParallelism.