This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
thread & resources lock
- From: fazio at planetek dot it
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 12 Dec 2003 10:18:11 +0100
- Subject: [ECOS] thread & resources lock
Hi,
I have a doubt about resouces management used by two threads: one thread writes a
variable and the other one reads its content. Do I have to lock the resource only when I
write it or both in writing and reading?
P.S. I'm using ecos on v850 target.
Thanks.
Teresa Fazio.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss