Class PreemptiveServer

All Implemented Interfaces:
Serializable, Copyable

public class PreemptiveServer extends ServiceSection implements Serializable
A preemptive service section that can interrupt lower priority jobs to serve higher priority jobs.

This server implements preemptive scheduling where an arriving high-priority job can interrupt the service of a lower-priority job currently being served. The interrupted job may resume service later depending on the preemption policy.

See Also:
  • Constructor Details

    • PreemptiveServer

      public PreemptiveServer(List<JobClass> customerClasses)
      Creates a new preemptive server section for the specified customer classes. Initializes with a single server that can preempt lower priority jobs.
      Parameters:
      customerClasses - the list of customer classes with different priorities