By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,330 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,330 IT Pros & Developers. It's quick & easy.

How to use Mutex in C

P: n/a
Hi Friends,
I have made a client server application in which multiple
clients can interact with server. but when two or more clients get
connected at the same time then memory error occurs. So I think i have
to use some synchronization tecnique to get things working properly. i
thought of using mutex. Can anybody help me with some sample code as
how to use mutex in C under windows.

Nov 10 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In article <11**********************@i42g2000cwa.googlegroups .com>,
<dh*******@gmail.comwrote:
>how to use mutex in C under windows.
That's a question for a Windows programming newsgroup: comp.lang.c
only deals with that which can be programmed using standard C with
no OS extensions.
--
Programming is what happens while you're busy making other plans.
Nov 10 '06 #2

P: n/a
dh*******@gmail.com wrote:
Hi Friends,
I have made a client server application in which multiple
clients can interact with server. but when two or more clients get
connected at the same time then memory error occurs. So I think i have
to use some synchronization tecnique to get things working properly. i
thought of using mutex. Can anybody help me with some sample code as
how to use mutex in C under windows.
You asked pretty much the same question a couple of days ago and you'll
still get the same answers today!

--
Ian Collins.
Nov 10 '06 #3

P: n/a

dh*******@gmail.com wrote:
Hi Friends,
I have made a client server application in which multiple
clients can interact with server. but when two or more clients get
connected at the same time then memory error occurs. So I think i have
to use some synchronization tecnique to get things working properly. i
thought of using mutex. Can anybody help me with some sample code as
how to use mutex in C under windows.
Mutexes are part of threading, not part of the C language (which, I
think explicitly, does not understand threads). You'd do better to ask
in a threading newsgroup, or perhaps find a good online or printed
reference.

The principles are simple, but the details will depend on the threading
implementation.

Nov 10 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.