DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Synchronizing threads

In general, each thread must take special care in using resources that might be concurrently used by another thread.


NOTE: The definition of ``resource'' will vary with applications. Typically, ``resources'' are manifested as some organization of data relevant to the application in process memory (perhaps a linked list or other data structure) or in files.

Unless their actions are synchronized, threads may encounter logically inconsistent linked lists or partially updated structures in common process memory. Synchronization may also be needed for concurrent actions on commonly held external resources such as file descriptors and message queues.


Next topic: Locks
Previous topic: Managing thread scheduling

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005