Discussion:
Thread synchronization C++ sample code
(too old to reply)
Why Tea
2009-02-18 04:59:15 UTC
Permalink
Hi all, I have been googling for some sample code to
synchronize two Windows threads created by a
service. But I don't seem to be able to find something
that gives me a quick start (I have done concurrent
programming in other languages). This is basically
what I am looking for:

1) The service S runs and starts up threads T1 and T2

2) T1 has to do some work and T2 shouldn't start
until T1 completes its task

Can someone points me to a URL or provides me
with some sample code? Thanks!

/Why Tea
Michael Mol
2009-02-18 05:39:44 UTC
Permalink
Post by Why Tea
Hi all, I have been googling for some sample code to
synchronize two Windows threads created by a
service. But I don't seem to be able to find something
that gives me a quick start (I have done concurrent
programming in other languages). This is basically
1) The service S runs and starts up threads T1 and T2
2) T1 has to do some work and T2 shouldn't start
    until T1 completes its task
Can someone points me to a URL or provides me
with some sample code? Thanks!
/Why Tea
http://msdn.microsoft.com/en-us/library/ms687032.aspx
http://msdn.microsoft.com/en-us/library/ms682396(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms682411(VS.85).aspx

Loading...