Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Wire Graph thread blocked
Wire Graph thread blocked [message #1810254] Tue, 06 August 2019 07:40 Go to next message
Pedro de Arquer is currently offline Pedro de ArquerFriend
Messages: 34
Registered: December 2018
Member
Hi,

I'm experimenting issues with the wire graph because the a thread (stimulated by a timer) is getting blocked and, what really worries me, blocks another threads.

I experienced the issue at a bug I introduced accidentally in a given component which locked down waiting for a response. Until there, it works as expected (wrong, but as expected). However, another component has configured a scheduleAtFixedRate task to verify some conditions, but once the main thread was locked, the scheduled tasks don't emerge anymore.

Is this reasonable? How could I make that execution independent? Other processes of Kura keep running as expected (such as clock synchronization or DataService housekeeper).

Thank you in advance,

Pedro
Re: Wire Graph thread blocked [message #1810255 is a reply to message #1810254] Tue, 06 August 2019 07:42 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 391
Registered: July 2015
Location: Italy
Senior Member
Hi,
have a look here: http://eclipse.github.io/kura/wires/kura-wires-fifo.html

Best regards
Re: Wire Graph thread blocked [message #1810257 is a reply to message #1810255] Tue, 06 August 2019 07:52 Go to previous messageGo to next message
Pedro de Arquer is currently offline Pedro de ArquerFriend
Messages: 34
Registered: December 2018
Member
Ok, so you suggest to create a solution similar to Fifo with an independent Thread subclass?
Why is SchedulerService not good enough? I though it actually created an independent Thread out of input runnable.
Re: Wire Graph thread blocked [message #1810258 is a reply to message #1810257] Tue, 06 August 2019 08:00 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 391
Registered: July 2015
Location: Italy
Senior Member
In wires, the thread created by the timer is used through all the flow. If something in this flow is blocking, then th thread is itself blocked.
Having the fifo component allows you to decouple parts of the graph.

Best regards
Re: Wire Graph thread blocked [message #1810259 is a reply to message #1810258] Tue, 06 August 2019 08:01 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 391
Registered: July 2015
Location: Italy
Senior Member
Maybe you can have a look also here: https://github.com/eclipse/kura/wiki/Kura-Wires-threading-model-proposal
Previous Topic:Asset configuration with table
Next Topic:Starting with Kura Emulator (Simulation)
Goto Forum:
  


Current Time: Sun Jul 05 11:47:51 GMT 2020

Powered by FUDForum. Page generated in 0.02224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top