question

William RDS avatar image
0 Likes"
William RDS asked William RDS commented

How manage multiple acquire resouce for task executer

My model is formed by a flow that goes through the "Portaria", then by "Amostragem", "Pesagem", "Moega" and then "Pesagem" again. I am unable to order "Pesagem" process so that priority is given to the incoming task executors. The "Pesagem" happens to be simultaneously occupied by two task executers.

Thanks a lot!

modelo-generico-cooperativa.fsm

FlexSim 18.2.3
process flowtask executerpriority
5 |100000

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

1 Answer

·
Braydn T avatar image
0 Likes"
Braydn T answered William RDS commented

@William RDS

So if I understand you correctly, you want the priority to be given to the task executor that is trying to acquire pesagem in the red box below, and not the acquire pesagem saida at the bottom?

If this is the case, the only way you will be able to do this is if you have two of the TE's trying to acquire while Pesagem is already acquired by the third, or if you have two task executors trying to acquire Pesagem in the exact same instance, which is extremely unlikely. Once a Resource is acquired, it cant be "aborted" and given to another executor trying to acquire it. By default, the acquiring a resource defaults to the token that reached the acquiring state first.

I watches your model for a while and I did not notice 2 TE's trying to acquire it at the same time. If you want to do it that way, I would use a different method to acquire pesagem, like using a list.

It is very likely that I did not understand your question, so if not please let me know what I got wrong and how we can help you. Thanks!


pesagem.png (36.6 KiB)
· 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.

William RDS avatar image William RDS commented ·

Thanks for your response. This is exactly what I need! For example, at approximately time 84, two Task Executers can be observed using the "Pesagem" simultaneously. I want to avoid this. I would like to give priority to the first "Pesagem". How can I do this used list feature?

Thanks

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.