Sunday, July 18, 2010

Three ways to make an object thread-safe


There are basically three approaches you can take to make an object such as RGBThread thread-safe:

  1. Synchronize critical sections
  2. Make it immutable
  3. Use a thread-safe wrapper 
design techniques and thread safety

    No comments:

    Post a Comment