question

Paulina B6 avatar image
0 Likes"
Paulina B6 asked Jeanette F commented

processor attention logic

Hello, I'm trying to understand what is the logic that the processors use when calling the next element to be served. That is why I would like you to indicate the logic and some examples taking into account the following model.


1678396192803.png

What I want to understand is if I leave the configuration that is in the red box, how will the logic be assumed to call the next green, yellow, blue or orange box, the red one does not have maximum priority, therefore it will be called first.

Thank you very much in advance

Logica para procesadores Flexsim.fsm

FlexSim 22.2.1
processorlogic
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Paulina B6, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

There's a few errors in your model.

You have an expression on Cola 2 and 6 queue to send to a port number whose value is:

current.outObjects[1].stats.input.value

This means once the Processor has taken two items for processing the Cola 2 and 6 queues will be trying to send to port numbers 2 and higher, while it only had one port out so should never send to a higher port than one.

Also all the queues are pulling based on Cola values and you are additionally sending from the source based on Type. For a transfer to take place both have to be true so you will never get any Type 11 leaving the source since even though the queue pulling Cola 4 would like to receive the item, the Source is telling it to leave on out port 11 which does not exist.

When all priorities are equal the process will pull from the highest port first, regardless of waiting time.



· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Paulina B6 avatar image Paulina B6 commented ·

Hola @Jason Lightfoot, Al ejecutar la simulación, como puedes ver en la pantalla, la cola 4 muestra un abandono (color negro). the tail actually says 4 and the type 11.

1678822357150.png

En el caso del color rojo, se puede ver que hay una cola de etiqueta, tipo y prioridad, por lo que se atenderá primero.

1678822475914.png

En el caso del morado tiene cola 1 tipo 6 y prioridad 20.

1678822711461.png

En el caso del negro tiene cola 1 tipo 11 y prioridad 20.

1678822898186.png

A partir de ese punto, ¿la lógica sigue siendo incorrecta?

¿Cómo funcionaría el procesador al llamar?

¿Qué pasa si le pongo una estrategia pull round robin?

¿Qué pasa si pongo una estrategia pull round robin si está disponible?


0 Likes 0 ·
1678822357150.png (265.4 KiB)
1678822475914.png (240.8 KiB)
1678822711461.png (243.2 KiB)
1678822898186.png (243.9 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Paulina B6 commented ·
What you show never occurs in the model you uploaded.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.