question

rodrigo O2 avatar image
0 Likes"
rodrigo O2 asked Matthew Gillespie answered

in process flow, how can i mark a processor as "ocupied"

Good afternoon, i'm trying to send a token from processor 1 to either of the three processors shown in the model. when it hits the "decide step" in the process flow the current token must go to either a "unocuppied" processor or the queue on the middle if all are ocuppied. right now the model decides randomly to whether send the token to the processor or the queue. I want that decide to send to prevent my token from being sent to a processor which already has a token on it (box). I attach the model so it is a clearer question. e-decide.fsm

FlexSim 19.1.1
mark processor as occupiedprocessflow decide
e-decide.fsm (40.2 KiB)
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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

You should use the Max Wait Timer option on the Acquire Resource activity. So you try to acquire a processor, but if there isn't one available then the max wait timer will fire and move the token down a different token where you can move the item to the queue. Take a look at the attached model where I implemented this in your model.

maxwaittimer.fsm


maxwaittimer.fsm (45.0 KiB)
5 |100000

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