This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ISR+thread synchronization problem


hi,
I was reading the mailing list regarding the ISR and thread synchronization problem. In my project also I am  also facing the same problem. But mine is quite strange..
I am not using DSR.
ISR uses semaphore to post the event and task uses semaphore wait for receiving the event.
I am using counting semaphore with inital value '0' to use as a binary semaphore.

When an ISR post an event through semaphore, the task which waits on the semaphore gets triggered and it services the data. 

After long time task stops accepting the event and found to be gone for blocking state.
>From there onwards any posting of the event from ISR never invokes the thread. 

Can U give some suggestion to over come this apart from DSR. Can any body tell me why the task went into blocking state even if it could have been unblocked after receiving  posted events.

thanx for help, 
pjmaiya 


--------------------------------------------------

Totally Amazing Search Results - Just C4 Yourself!

http://www.C4.com - Total Search Technology


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]