question

Denise H2 avatar image
0 Likes"
Denise H2 asked tannerp commented

How to solve a deadlock?

deadlock.fsm

Hey guys,

may you can help me. I need to solve a "deadlock", but I'm not sure how it should work.

The problem is, that the Operator is aquired in step 1, in step 1 you need to acquire die processor of step 2. But processor of step 2 is already required and needs to be released by the Operator. So a deadlock exists.

You can find my modell attached.

Hope you can help me!!

Thank you in advance!

FlexSim 18.0.5
operatorprocessordeadlock
deadlock.fsm (40.2 KiB)
deadlock.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

Axel Kohonen avatar image
0 Likes"
Axel Kohonen answered Denise H2 commented

Hi @Denise H2

Would it be possible for you to rewrite the process flow so that you always acquire both the operator and the processor and not continue if you cannot get both? You could do this e.g. by first acquiring the operator and having the acquire processor directly after it with a Max Wait timer with time zero for the acquire. If you cannot acquire both operator and processor then you return to the start of the process flow.

· 4
5 |100000

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