Am Don, 27 Apr 2000 schrieben Sie:
> > try_cntr = MAX_TRIES;
> >
> > do {
> > try_cntr--;
> > } while(shm_put_SensorLUT(slut) != 0 || try_cntr ==0);
>
> Just a note:
>
> In most of the cases this loop runs down immediately unless shm_put_SensorLUT()
> allows other tasks to run. Therefore it is unprobable that the resource
> will be freed just while the loop counts down.
>
> So it makes almost no difference what is the initial value of try_cntr.
Mmh, ok. This was part of the initializing inside init_module(), that means it
isn't realtime yet. But this doesn't make difference concerning your statment
above. Is there a function inside kernl to sleep for e.g. 10ms ??? Concerning
the rt-task I can't use phread_supend_np - who should wake up the task. Do you
know such ways ??
Thanks Olaf
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/