%% Comparing Prioritized Queuing Policies

% Copyright 2008-2012 The MathWorks, Inc.

%% Overview
% This example shows how to use the Priority Queue block to implement queuing policies
% based on service time.

modelname = 'sedemo_priority_policies';
open_system(modelname);
sim(modelname);

%% Structure
% This model compares the performance of two prioritized queuing policies
% with the first-in, first-out (FIFO) queuing policy.

%% Related Examples
% * <matlab:helpview(fullfile(docroot,'toolbox','simevents','helptargets.map'),'doc_dd1'); D/D/1 Queuing Example>
% * <matlab:helpview(fullfile(docroot,'toolbox','simevents','helptargets.map'),'doc_lifo_vs_fifo'); LIFO Queuing>
% * <matlab:helpview(fullfile(docroot,'toolbox','simevents','helptargets.map'),'doc_mm5'); N server example M/M/5 Queuing 
% System (Markovian)>
% * <matlab:helpview(fullfile(docroot,'toolbox','simevents','helptargets.map'),'doc_priorityq'); Priority Queuing Example>
% * <matlab:showdemo('sedemo_preempt_policy'); Comparing Server Preemption Policies>

%% 
%cleanup
bdclose(modelname);
clear modelname;
displayEndOfDemoMessage(mfilename)
