The processor's input and output are connected to the same queue

The processor's input and output are connected to the same queue

dongdong
Not applicable
88 Views
1 Reply
Message 1 of 2

The processor's input and output are connected to the same queue

dongdong
Not applicable

[ FlexSim 24.2.0 ]

test0904.fsmHello everyone, I am currently facing an issue where I pull an item from the queue to the processor for processing. After processing, the item needs to be returned to the same queue. Initially, the item's label "f" is set to 0, and after processing, the label "f" is set to 1. However, the processed item is not able to return to the queue. I would appreciate any help. Thank you!

0 Likes
Accepted solutions (1)
89 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

- The label gets reset every time the item enters the queue. It would be better to initialize the label in the On Creation trigger of the source.

- You create a deadlock. If both the queue and the processor contain their maximum content they can't release items to each other and the system becomes stuck.

What is supposed to happen to the processed items? There must be an outlet?

To prevent the deadlock, you should always leave one spot open in the queue that is reserved for items from the processor. You can do this closing the output of the source when the penultimate spot in the queue is oocupied (On Entry trigger of the queue).

test0904_1.fsm

0 Likes