Re: Implementation of a new Resource Sharing Protocol

2018-11-16 Thread Malte Münch
Hello, now i've read through a bit of code. Isn't _Thread_queue_Operations_FIFO respectively _Thread_queue_Do_nothing_priority_actions more suitable for me than _Thread_queue_Operations_priority with priority_actions _Thread_queue_Priority_priority_actions? Best regards Malte On 15.11.18 17:05,

Re: Implementation of a new Resource Sharing Protocol

2018-11-15 Thread Malte Münch
ok, thanks a lot, i will have a look into that. Best regards, Malte On 15.11.18 17:05, Sebastian Huber wrote: > I think with this change you get something similar (priority inheritance > is also disabled): > > diff --git a/cpukit/include/rtems/score/mrspimpl.h > b/cpukit/include/rtems/score/mrs

Re: Implementation of a new Resource Sharing Protocol

2018-11-15 Thread Sebastian Huber
I think with this change you get something similar (priority inheritance is also disabled): diff --git a/cpukit/include/rtems/score/mrspimpl.h b/cpukit/include/rtems/score/mrspimpl.h index b9c7441401..4b69d6c68b 100644 --- a/cpukit/include/rtems/score/mrspimpl.h +++ b/cpukit/include/rtems/scor

Re: Implementation of a new Resource Sharing Protocol

2018-11-15 Thread Malte Münch
I mean something like: while (resource blocked) { // nothing } instead of while (resource blocked) { // help other tasks } On 15.11.18 16:44, Sebastian Huber wrote: > On 15/11/2018 16:42, Malte Münch wrote: >> Hello, >> >> i am fiddling around with the mrsp-implementation for a w

Re: Implementation of a new Resource Sharing Protocol

2018-11-15 Thread Sebastian Huber
On 15/11/2018 16:42, Malte Münch wrote: Hello, i am fiddling around with the mrsp-implementation for a while now. But until now i am not able to divide the codeparts and understand what each thing is doing. I am particularly interested in the part where the helping mechanism is enabled. I want t

Re: Implementation of a new Resource Sharing Protocol

2018-11-15 Thread Malte Münch
Hello, i am fiddling around with the mrsp-implementation for a while now. But until now i am not able to divide the codeparts and understand what each thing is doing. I am particularly interested in the part where the helping mechanism is enabled. I want to replace it in a way that the task is idl

Re: Implementation of a new Resource Sharing Protocol

2018-11-13 Thread Sebastian Huber
On 13/11/2018 09:58, Malte Münch wrote: ok, so if i get this right _Thread_Dispatch_disable() and disabling of interrupts both ensure that the current thread is not preempted and can continue its spinning as it is waiting for its resource. As is seems to me _Thread_Dispatch_disable is the better

Re: Implementation of a new Resource Sharing Protocol

2018-11-13 Thread Sebastian Huber
On 13/11/2018 09:37, Malte Münch wrote: Good morning Sebastian, thanks for your quick answer. Thanks for your hint on where to look for the locking. I think i will need some time to understand what each macro is doing. My plan with the rtems_task_mode() call was to start there and trace down to

Re: Implementation of a new Resource Sharing Protocol

2018-11-13 Thread Malte Münch
Good morning Sebastian, thanks for your quick answer. Thanks for your hint on where to look for the locking. I think i will need some time to understand what each macro is doing. My plan with the rtems_task_mode() call was to start there and trace down to the according kernel call. I will try th

Re: Implementation of a new Resource Sharing Protocol

2018-11-12 Thread Sebastian Huber
Hello Malte, On 12/11/2018 11:28, Malte Münch wrote: Hi, i am implementing a new resource sharing protocol for RTEMS as part of my bachelor thesis. The thesis is about resource sharing protocols in realtime environments on multicore systems. Right now i have to use a spinlock for a protocol and