what are the different types snchronization methods ?(other than semaphore,mutex,binary semaphore)
Asked
Active
Viewed 879 times
2
-
1Are you talking about concurrency constructs in general, or those provided by Linux...like in the kernel? – wkl Feb 15 '11 at 06:13
1 Answers
1
I'm assuming that you're talking about application development and not Kernel development.
Linux supports Posix synchronization techniques. Some common ones are a mutex (for multi-threaded applications) and semaphores. You can use these in many ways... An example of semaphore usage would be multiple processes and keeping a semaphore in shared memory.
I recommend you do some reading of the following manpages:
sem_init
pthread_mutex_init
Also, here's a good discussion on the usage of file locking
Hope that helps.

Community
- 1
- 1

Steve Lazaridis
- 2,210
- 1
- 15
- 15