On Fri, 6 Feb 2004 22:50:02 +0100, in comp.lang.c , Andreas Røsdal
<an******@stud.ntnu.no> wrote:
Hi,
I'm used to enforcing mutual exclusion (with monitors)
in Java. Any pointers as to how to implement this in C on Linux?
ie. I want to protect a shared object from access to more than one thread
at a time.
Sounds like you want to use mutexes. This is not properly a C question but
a linux one, since C doesn't have native support for threads.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---