Skip to main content



      Home
Home » Eclipse Projects » Kura » Wire Graph thread blocked
Wire Graph thread blocked [message #1810254] Tue, 06 August 2019 03:40 Go to next message
Eclipse UserFriend
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 03:42 Go to previous messageGo to next message
Eclipse UserFriend
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 03:52 Go to previous messageGo to next message
Eclipse UserFriend
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 04:00 Go to previous messageGo to next message
Eclipse UserFriend
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 04:01 Go to previous message
Eclipse UserFriend
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:Db operation failed
Goto Forum:
  


Current Time: Tue Jul 08 15:51:33 EDT 2025

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

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

Back to the top