home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Snippets / Stuart's Tech Notes / Stu’sThreadUtils / 00README.note next >
Encoding:
Text File  |  1994-12-10  |  1.3 KB  |  37 lines  |  [TEXT/KAHL]

  1. // Stu’sThreadUtils
  2. // 
  3. // (C) 6th March 1994  Stuart Cheshire <cheshire@cs.stanford.edu>
  4. // 
  5.  
  6. Stu’sThreadUtils is an ongoing development to make useful ThreadManager
  7. routines available to the public.
  8.  
  9. I wrote it because Apple’s Thread Manager is a great step forward to
  10. helping more developers create multi-threaded applications, with all
  11. the benefits that can bring to us end-users, so I’m very happy about it.
  12.  
  13. However, the facilities provided by Apple’s Thread Manager are very raw
  14. and minimal, and the supplimentary routines provided in Apple’s ThreadUtils
  15. leave much to be desired, and are more likely to put people off thread
  16. programming than encourage them.
  17.  
  18. Because of this, I wrote my own ThreadUtils. They are simple, elegant,
  19. and efficient, and should make people’s lives much easier when they are
  20. trying to write threaded code.
  21.  
  22. See ThreadSynch.h for a brief tutorial on how to use Mutual Exclusion
  23. locks, Condition Variables, and Semaphores.
  24.  
  25. There are three files in this package (so far):
  26.  
  27. // ThreadSynch.c/h
  28. // This file defines thread synchronization primitives:
  29. // Semaphores, Mutual exclusion locks, and Condition variables.
  30.  
  31. // Pipeline.c/h
  32. // An example of a library using mutual exclusion locks, and condition
  33. // variables to implement a producers/consumers pipeline
  34.  
  35. // test.c
  36. // Example code to use the above files.
  37.