2

what are the different types snchronization methods ?(other than semaphore,mutex,binary semaphore)

ajreal
  • 46,720
  • 11
  • 89
  • 119
user615929
  • 475
  • 3
  • 7
  • 9
  • 1
    Are you talking about concurrency constructs in general, or those provided by Linux...like in the kernel? – wkl Feb 15 '11 at 06:13

1 Answers1

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