Process----Burst Time----Priority----Arrival Time

P1----------10--------------3-----------0------------

P2----------1---------------1-----------0------------

P3----------10--------------3-----------1------------

P4----------2---------------2-----------1------------

My question is, when drawing a gantt chart for First Come First Serve do you take into account the priority when two processes have the same arrival time?

i.e. would the gantt chart be:

P2------P1-------P4-----P3--------

0-------1---------11-----13-------23

or would you not take into account the priority and just start with the first element in the table i.e.

P1-------P2-----P3--------P4------

0--------10------11--------21------23

Sorry about the formatting, i don't know if its possible to draw tables. But any help would be greatly appreciated as i can't find any examples of FCFS on the web with a priority.