But I thought that if there are multiple events which need to be processed,
that is more processes enter at the same time, I should be able to decide
which one to schedule (based on an algorithm) among those. In order to do
that, can I read the event queue till I reach the end of the queue or
something like that? I do not have any idea regarding the number of events
that I need to read either…
I hope the point that I am trying to make is clear.
“Jens H Jorgensen” <firstname.lastname@example.org> wrote in message
If you have some code which needs to be executed at a regular rate then
should look at following functions:
ConnectAttach() - to setup a message channel for receiving timer events
timer_create() - create a timer
timer_settime() - setup the timer
MsgReceive() - for receiving the timer event. Run this one in its own
If you need you timer tick to be at a higher priority level than any
then set the priority with SIGEV_PULSE_INIT() before timer_create()
“Karthik” <> email@example.com> > wrote in message
news:a9prk0$fkd$> firstname.lastname@example.org> …
I was trying to write a scheduler as one of the processes running on top
the Micro-kernel. I am not able to understnd the best way to approach
problem. Assuming that I am trying to schedule real-time tasks, which
periodic to start with.
Can anyone let me know what I could do?