Selecting the Correct Synchronization Technique

< BACK  NEXT >
[oR]

The following describes the typical situations in which the various synchronization techniques are used.

  • Mutex objects are used to stop two threads from attempting to access some shared resource at the same time. Critical sections can be used within a process.

  • Event objects are used to allow one or more threads to block until another thread has completed a task.

  • Semaphore objects are used when synchronized counting is required with some given maximum value.


< BACK  NEXT >


Windows CE 3. 0 Application Programming
Windows CE 3.0: Application Programming (Prentice Hall Series on Microsoft Technologies)
ISBN: 0130255920
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net