question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Steven Hamoen answered

deadlock in process flow pull from the list

Hi Flex Simers,

I am reaching out for guidance on resolve deadlock in pull from the list process flow, below I am attaching the example blocking case.

Looking forward to your valuable insights. Thanks in advance for your time.

process flow pull list deadlock_autosave.fsm

FlexSim 24.2.3
process flowdeadlockpull from the list
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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Hemanth Sai Kumar If you use the step functionality you can see exactly what happens:

Token 1 claims operator 1 -> claims operator 2 -> releases 1-> tries to claim 1 again

Token 2 tries to claim 1 and when token 1 releases 1 it claims 1. Then it tries to claim 2 but it cannot because token 1 still claims 2 and token 1 cannot release operator 2 because it needs operator 1 first before it can release 2. So there is your bottleneck.

You could try to work with zones maybe to prevent an operator to be claimed too early?

5 |100000

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