[LITMUS^RT] information about Locking Protocols
Stephen Tang
sytang at cs.unc.edu
Fri Jun 19 22:27:14 CEST 2020
About locking protocols, a plugin constructs new locks by implementing the
allocate_lock plugin function. The behavior of the constructed lock is
defined by a litmus_lock_ops struct (see litmus/locking.h). How these
functions are implemented will depend on your scheduler plugin and whatever
locking protocol you wish to use. It looks like the gsn_edf plugin does all
this for FMLP, so maybe look to that plugin as an example.
For job parameters, there are several macros defined in litmus/litmus.h
(e.g., get_deadline, get_exec_cost) that return this information.
On Fri, Jun 19, 2020 at 11:10 AM Marov Gazaal <adamagaghz at gmail.com> wrote:
> Hello everyone. I have two problems:
> First, I ask about information on how to deal with locking protocols in
> litmusRT.
>
> Second, I want to build new scheduler plugin. I saw some pre-build plugins
> in litmus, and I know I can create tasks using some command which give me a
> capable to specify some time parameters for the task, but there is
> something I do not understand about how can I reach to task's time
> parameters (like: period, budget, arrival time, ... etc ) to calculate
> tasks priorities according to specific scheduling algorithm. I am trying to
> build a kind of semi-partitioned scheduling algorithm which depend on LLF
> (least laxity first) which depends ,in its role, on Deadline, WCET to
> calculate priorities.
>
> Thanks a lot.
>
> Marouf Ghazal
> MSc student - Tishreen University
> _______________________________________________
> litmus-dev mailing list
> litmus-dev at lists.litmus-rt.org
> https://lists.litmus-rt.org/listinfo/litmus-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20200619/78b25b66/attachment.html>
More information about the litmus-dev
mailing list