Critical section Example? Deadlock Topic is solved

Post Reply
rvooyen
Posts: 979
Joined: 08.12.2012, 11:31
Location: Netherlands (Hilversum)

Critical section Example? Deadlock

Post by rvooyen » 22.03.2019, 22:43

Hi,

I am trying to set up an example of shuttling trains (pendeldienst) using the example in the WIKI.

The example in the WIKI that can be downloaded (with two critical blocks) I have working OK.

The example with one block cannot be downloaded so I made my own - ATTACHED.

I cannot seem to avoid the locs getting deadlocked if three locs are sent on auto. With two it works OK.

I have setup the blockgroup per the example but does not seem to work.

Can anyone see what I have done wrong - to avoid deadlocking when three locs in use.

Thanks,

Robert
You do not have the required permissions to view the files attached to this post.

rjversluis
Site Admin
Posts: 42306
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Critical section Example? Deadlock

Post by rjversluis » 23.03.2019, 07:31

Hi Robert,

the used Block IDs in the conditions doe not exist; Use the tripple dot button.
Bk1 is not equal to bk1.

rvooyen
Posts: 979
Joined: 08.12.2012, 11:31
Location: Netherlands (Hilversum)

Re: Critical section Example? Deadlock

Post by rvooyen » 23.03.2019, 12:58

Thanks. I corrected the block names.

However the deadlock still occurs. I am starting the locs in virtual auto mode one after the other, so no sensors are being activated in this mode. Is this a valid test?

See attached issue showing the start and after about three loc movements a loc goes into bk3 with no exti available - deadlock.

Robert
You do not have the required permissions to view the files attached to this post.

smitt48
Moderator
Posts: 6111
Joined: 04.04.2014, 01:07
Location: Kralendijk, Bonaire - Dutch Caribbean

Re: Critical section Example? Deadlock

Post by smitt48 » 23.03.2019, 13:14

Hi Robert,

https://wiki.rocrail.net/doku.php?id=bl ... n#examples

The wiki (en,de) has been fixed, somehow the zip file was changed to xml that did not exists.

Tom

rjversluis
Site Admin
Posts: 42306
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Critical section Example? Deadlock

Post by rjversluis » 23.03.2019, 13:48

Hi Robert,

you must specify the plus/min side in the conditions because there is only one critical block involved.
You do not have the required permissions to view the files attached to this post.

rvooyen
Posts: 979
Joined: 08.12.2012, 11:31
Location: Netherlands (Hilversum)

Re: Critical section Example? Deadlock

Post by rvooyen » 23.03.2019, 14:48

Thanks Tom and Rob,

Rob for the info - WIKI is somwhat shorthand. Newbies may have probs reading it as I did?

Tom for updating on the example which would have helped a lot.

I have the shuttle running now. Block name and plus minus needed! Not fully clear in the WIKI.

Thanks,

Robert

rjversluis
Site Admin
Posts: 42306
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Critical section Example? Deadlock

Post by rjversluis » 23.03.2019, 14:51

Not fully clear in the WIKI.
any suggestions are welcome.

smitt48
Moderator
Posts: 6111
Joined: 04.04.2014, 01:07
Location: Kralendijk, Bonaire - Dutch Caribbean

Re: Critical section Example? Deadlock

Post by smitt48 » 23.03.2019, 15:13

Hi Robert,

This is what is in the wiki now
blockgroups-wiki-en.PNG
This is what it looks like in blockgroup conditions
blockgroups-cond-en.PNG
You can vote, which one do you want?

Tom
You do not have the required permissions to view the files attached to this post.

rjversluis
Site Admin
Posts: 42306
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Critical section Example? Deadlock

Post by rjversluis » 23.03.2019, 15:47

Robert,

your original condition was:
Use the critical section if one or more of the blocks bk1,bk2,bk4,bk5 are free. So the behaviour is not unexpected but wanted. The show stopper is that the loco in block bk3 has no way to run backwards.
You did split the condition up, but with the same result.

Post Reply

Return to “Automatic mode”