Shared I/O problem

Angelo Fraietta angelo_f at internode.on.net
Thu Mar 17 04:51:29 UTC 2005



willisfield wrote:

>
> We know tasks can be preempted in RTEMS. If one task is using an io 
> device, at the same time the task is preempted by another task which 
> will use the io device. The state of the io device will be changed and 
> when the first task restarts, how to recover the state of the io 
> device? that is to say how to resolve the situation that one io device 
> can be used between different tasks of RTEMS?
> Thanks for your reading and any answer is appreatiated!
>
>
>
>
Place a semaphore around the calls to write to the device so only one 
task is allowed to write to it an any time.

-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


http://www.users.bigpond.com/angelo_f/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)






More information about the users mailing list